Skip to content

Switch --add-source to --source when installing .NET tools in Arcade scripts#16642

Merged
premun merged 1 commit into
dotnet:mainfrom
premun:prvysoky/add-source
Mar 30, 2026
Merged

Switch --add-source to --source when installing .NET tools in Arcade scripts#16642
premun merged 1 commit into
dotnet:mainfrom
premun:prvysoky/add-source

Conversation

@premun

@premun premun commented Mar 30, 2026

Copy link
Copy Markdown
Member

We hit problems when dotnet/sdk#52863 got introduced in combination with #16628 in how we install tools in Arcade

@premun premun changed the title Use --source instead of --add-source Switch --add-source to --source when installing .NET tools in Arcade scripts Mar 30, 2026
@premun premun enabled auto-merge (squash) March 30, 2026 10:55
@premun premun merged commit 286e98c into dotnet:main Mar 30, 2026
12 of 13 checks passed
@premun premun deleted the prvysoky/add-source branch March 31, 2026 07:33
@joperezr

Copy link
Copy Markdown
Member

/backport to release/10.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0 (link to workflow run)

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>
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.

4 participants