Skip to content

node-repo-module-pack: publish with the same reference set as the build (-p:MeshWeaverRefs) - #2715

Merged
rbuergi merged 1 commit into
mainfrom
ci/pack-publish-refs
Aug 30, 2026
Merged

rbuergi merged 1 commit into
mainfrom
ci/pack-publish-refs

Conversation

@rbuergi

@rbuergi rbuergi commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Why

With platform-image / platform-image-digest set, the build step drops the platform ProjectReferences in favour of the image's /app assemblies (-p:MeshWeaverRefs, Plugins #926's Directory.PlatformRefs.targets). The publish step (dotnet publish --no-build) re-evaluates the project without that property, so the references come back and publish copies their outputs — which were never built:

error MSB3030: Could not copy the file ".../meshweaver/src/MeshWeaver.Graph/bin/Release/net10.0/MeshWeaver.Graph.dll" because it was not found.

Plugins #940, run 33288360783 — every module that reached publish.

What

The publish step gets the same REFS env and ${REFS:+-p:MeshWeaverRefs=$REFS} as the build step. No-op for callers that pass no platform image.

🤖 Generated with Claude Code

…ld (-p:MeshWeaverRefs)

`dotnet publish --no-build` re-evaluates the project. With platform-image inputs the BUILD drops
the platform ProjectReferences in favour of the image's assemblies (Directory.PlatformRefs.targets,
Plugins #926), but the publish step did not pass -p:MeshWeaverRefs, so the references came back
and publish copied their outputs — which the build had never produced:
"MSB3030: Could not copy meshweaver/src/MeshWeaver.Graph/bin/Release/net10.0/MeshWeaver.Graph.dll"
(Plugins #940, run 33288360783, every module that publishes).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 30, 2026 02:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures the node-repo-module-pack workflow publishes modules using the same platform reference set as the earlier build step when platform-image/platform-image-digest is provided, preventing dotnet publish --no-build from reintroducing dropped ProjectReferences and failing on missing outputs.

Changes:

  • Pass -p:MeshWeaverRefs=$REFS to the dotnet publish step, matching the dotnet build step’s reference set.
  • Add the REFS environment setup to the publish step, keyed off inputs.platform-image-digest.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 3)

693 tests   501 ✅  4m 28s ⏱️
  5 suites  192 💤
  5 files      0 ❌

Results for commit 23731e3.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 5)

1 528 tests   1 528 ✅  5m 35s ⏱️
    8 suites      0 💤
    8 files        0 ❌

Results for commit 23731e3.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 2)

941 tests   941 ✅  5m 13s ⏱️
  6 suites    0 💤
  6 files      0 ❌

Results for commit 23731e3.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 0)

913 tests   913 ✅  5m 19s ⏱️
  6 suites    0 💤
  6 files      0 ❌

Results for commit 23731e3.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 4)

   10 files     10 suites   6m 13s ⏱️
3 463 tests 3 463 ✅ 0 💤 0 ❌
4 101 runs  4 101 ✅ 0 💤 0 ❌

Results for commit 23731e3.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 1)

818 tests   814 ✅  7m 48s ⏱️
  6 suites    4 💤
  6 files      0 ❌

Results for commit 23731e3.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   41 files     41 suites   34m 39s ⏱️
8 356 tests 8 160 ✅ 196 💤 0 ❌
8 994 runs  8 798 ✅ 196 💤 0 ❌

Results for commit 23731e3.

@rbuergi
rbuergi merged commit c9e7065 into main Aug 30, 2026
25 checks passed
@rbuergi
rbuergi deleted the ci/pack-publish-refs branch October 10, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants