Port eng/common --add-source -> --source from #7437 to fix Publish Using Darc - #7499
#7499Merged
martinrrm merged 1 commit intoJun 23, 2026
devNuGet/NuGet.Client:devfrom
dev-mruizmares-darc-init-sourceNuGet/NuGet.Client:dev-mruizmares-darc-init-sourceCopy head branch name to clipboard
Merged
Port eng/common --add-source -> --source from #7437 to fix Publish Using Darc#7499martinrrm merged 1 commit intodevNuGet/NuGet.Client:devfrom dev-mruizmares-darc-init-sourceNuGet/NuGet.Client:dev-mruizmares-darc-init-sourceCopy head branch name to clipboard
martinrrm merged 1 commit into
devNuGet/NuGet.Client:devfrom
dev-mruizmares-darc-init-sourceNuGet/NuGet.Client:dev-mruizmares-darc-init-sourceCopy head branch name to clipboard
Conversation
The NuGet.Client-Official "Publish Using Darc" stage fails installing the darc CLI: "The --add-source option cannot be combined with package source mapping." This began on 2026-06-18 when #7453 bumped global.json to SDK 10.0.300, which now rejects 'dotnet tool install --add-source' when <packageSourceMapping> is configured. eng/common is VMR-managed; the fix exists upstream (dotnet/arcade#16642) and already flowed to release/7.6.x via #7437, but dev's VMR backflow is behind. Manually port #7437's eng/common changes (excluding vmr-sync.yml, which has diverged on dev): - darc-init.ps1 / darc-init.sh: --add-source -> --source - post-build/redact-logs.ps1: --add-source -> --source - core-templates/steps/source-index-stage1-publish.yml: --add-source -> --source - core-templates/steps/publish-logs.yml: drop deprecated symbol-server PATs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Nigusu-Allehu
approved these changes
Jun 22, 2026
nkolev92
approved these changes
Jun 23, 2026
jebriede
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: N/A (engineering change)
Description
Symptom
The
NuGet.Client-Officialbuild's Publish Using Darc stage has been failing since 2026-06-18:The "darc.exe is not recognized" error is a symptom — the real failure is the
dotnet tool install ... --add-sourceline just above it failing, so darc never installs.Root cause
NuGet.Confighas long used<packageSourceMapping>.eng/commontool-install scripts usedotnet tool install --add-source.global.jsontools.dotnetfrom10.0.100→10.0.300. SDK 10.0.300 now rejects--add-sourcewhen package source mapping is configured (Reject --add-source when package source mapping is enabled dotnet/sdk#52863); 10.0.100 allowed it. The last green build used 10.0.100; the first red build used 10.0.300 with the identical command.Fix
eng/commonis VMR-managed. The fix already exists upstream (dotnet/arcade#16642,--add-source→--source) and flowed torelease/7.6.xvia backflow PR #7437, butdev's VMR backflow is behind. This PR manually ports #7437'seng/commonchanges todev:eng/common/darc-init.ps1/darc-init.sh—--add-source→--sourceeng/common/post-build/redact-logs.ps1—--add-source→--sourceeng/common/core-templates/steps/source-index-stage1-publish.yml—--add-source→--sourceeng/common/core-templates/steps/publish-logs.yml— drop deprecated symbol-server PATs--sourceoverrides the source list (compatible with package source mapping) instead of appending an unmapped feed. The next VMR backflow will carry the identical change, so this won't conflict.vmr-sync.yml(also changed by #7437) was intentionally excluded — dev's version has diverged from release/7.6.x (it contains additional VMR-sha-checkout steps) and it's unrelated to this fix.PR Checklist
Added testsLink to an issue or pull request to update docs