Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Port eng/common --add-source -> --source from #7437 to fix Publish Using Darc - #7499

#7499
Merged
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
Jun 23, 2026
Merged

Port eng/common --add-source -> --source from #7437 to fix Publish Using Darc#7499
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

@martinrrm

Copy link
Copy Markdown
Contributor

Bug

Fixes: N/A (engineering change)

Description

Symptom

The NuGet.Client-Official build's Publish Using Darc stage has been failing since 2026-06-18:

The --add-source option cannot be combined with package source mapping.
The term '...\darc.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.

The "darc.exe is not recognized" error is a symptom — the real failure is the dotnet tool install ... --add-source line just above it failing, so darc never installs.

Root cause

Fix

eng/common is VMR-managed. The fix already exists upstream (dotnet/arcade#16642, --add-source--source) and flowed to release/7.6.x via backflow PR #7437, but dev's VMR backflow is behind. This PR manually ports #7437's eng/common changes to dev:

  • eng/common/darc-init.ps1 / darc-init.sh--add-source--source
  • eng/common/post-build/redact-logs.ps1--add-source--source
  • eng/common/core-templates/steps/source-index-stage1-publish.yml--add-source--source
  • eng/common/core-templates/steps/publish-logs.yml — drop deprecated symbol-server PATs

--source overrides 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

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs

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>
@martinrrm
martinrrm requested a review from a team as a code owner June 22, 2026 23:26
@martinrrm
martinrrm merged commit 0340f79 into dev Jun 23, 2026
20 of 21 checks passed
@martinrrm
martinrrm deleted the dev-mruizmares-darc-init-source branch June 23, 2026 04:21
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.