Skip to content

Add scheduled workflow to auto-fix NuGet.config packageSource key mismatch in release/10.0 PRs#14480

Merged
Shyam-Gupta merged 1 commit intomainfrom
copilot/fix-nuget-feed-key-issue
Apr 20, 2026
Merged

Add scheduled workflow to auto-fix NuGet.config packageSource key mismatch in release/10.0 PRs#14480
Shyam-Gupta merged 1 commit intomainfrom
copilot/fix-nuget-feed-key-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 17, 2026

When dotnet-maestro[bot] opens a codeflow update PR against release/10.0, it updates the <packageSources> feed key to the new SHA (darc-pub-dotnet-dotnet-{new-sha}). This causes our corresponding <packageSourceMapping> key to get stale and it fails to locate packages like Microsoft.NET.Sdk.IL, producing:

error : Could not resolve SDK "Microsoft.NET.Sdk.IL". Exactly one of the probing messages below indicates why we could not resolve the SDK.

This has required a manual follow-up commit on every such PR (e.g. the second commit in #14469, and the same pattern in #14442, #14448, #14436, #14430).

Changes

  • .github/workflows/fix-nuget-config-release-pr.yml — new scheduled workflow:
    • Runs daily at 18:00 UTC (10 AM PST); also supports workflow_dispatch
    • Enumerates open PRs targeting release/10.0
    • For each non-fork PR, compares the darc-pub-dotnet-dotnet-* key in <packageSources> against the one in <packageSourceMapping>
    • If they differ, commits the corrected NuGet.config directly to the PR branch with message Update packageSource key in NuGet.config
    • Skips fork PRs (no push access) and PRs where the keys already match
Microsoft Reviewers: Open in CodeFlow

… in release/10.0 PRs

Agent-Logs-Url: https://github.com/dotnet/winforms/sessions/9e5969ab-bccd-4a40-ba19-f10228d76d67

Co-authored-by: Shyam-Gupta <24871676+Shyam-Gupta@users.noreply.github.com>
@Shyam-Gupta Shyam-Gupta removed the draft draft PR label Apr 17, 2026
@Shyam-Gupta Shyam-Gupta merged commit 62085c0 into main Apr 20, 2026
5 checks passed
@Shyam-Gupta Shyam-Gupta deleted the copilot/fix-nuget-feed-key-issue branch April 20, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants