Skip to content

[ci] Route API diff through dotnet-public - #1527

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-nuget-routing
Aug 18, 2026
Merged

[ci] Route API diff through dotnet-public#1527
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-nuget-routing

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

The API diff task performs package lookup independently of normal NuGet restore, causing direct traffic to NuGet.org despite the repository-level configuration.

This change reads the canonical dotnet-public source from NuGet.config and passes it explicitly to api-tools nuget-diff. Workload installation paths now also use the root configuration, and the duplicated workload source variable has been removed.

Validation:

  • Ran nuget-diff.cake against a real mirrored package and confirmed the generated command uses the dotnet-public source.
  • Parsed the changed YAML files successfully.
  • Ran git diff --check.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the CI/API-diff pipeline to consistently route NuGet package lookups through the repository’s canonical dotnet-public feed (as defined in NuGet.config), rather than letting individual tools fall back to direct NuGet.org traffic or duplicated inline feed configuration.

Changes:

  • Read the dotnet-public package source from the root NuGet.config and pass it explicitly to dotnet api-tools nuget-diff.
  • Remove the duplicated CI variable for the workload feed URL.
  • Ensure workload installation uses the root NuGet.config via --configfile in both Azure Pipelines and the GitHub workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
nuget-diff.cake Extracts dotnet-public from NuGet.config and passes it to api-tools nuget-diff via --source.
build/ci/variables.yml Removes the now-redundant dotnetWorkloadSource variable.
build/ci/setup-environment.yml Installs workloads using --configfile NuGet.config instead of an explicit --source variable.
.github/workflows/copilot-setup-steps.yml Installs the Android workload using --configfile NuGet.config for consistent feed usage.

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

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) August 18, 2026 19:17

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

API diff and workload setup now consistently use the canonical dotnet-public source and root NuGet configuration.

@jonathanpeppers
jonathanpeppers merged commit 7fe1289 into main Aug 18, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-fix-nuget-routing branch August 18, 2026 19:32
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.

3 participants