Switch --add-source to --source when installing .NET tools in Arcade scripts#16642
Merged
Conversation
akoeplinger
approved these changes
Mar 30, 2026
--source instead of --add-source--add-source to --source when installing .NET tools in Arcade scripts
mmitche
approved these changes
Mar 30, 2026
Member
|
/backport to release/10.0 |
Contributor
|
Started backporting to |
3 tasks
martinrrm
added a commit
to NuGet/NuGet.Client
that referenced
this pull request
Jun 23, 2026
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>
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.
We hit problems when dotnet/sdk#52863 got introduced in combination with #16628 in how we install tools in Arcade