Skip to content

Add NuGet.Config restricting feeds to nuget.org - #96

Merged
gep13 merged 1 commit into
cake-contrib:developfrom
gep13:nuget-config
May 3, 2026
Merged

gep13 merged 1 commit into
cake-contrib:developfrom
gep13:nuget-config

Conversation

@gep13

@gep13 gep13 commented May 3, 2026

Copy link
Copy Markdown
Member

Summary

Cake.Recipe 4.0.0 hardcodes https://www.myget.org/F/cake-contrib/api/v3/index.json as a fallback NuGet source whenever the addin lacks a NuGet.Config (see Cake.Recipe/Source/Cake.Recipe/Content/parameters.cake:361). MyGet is currently flaky (HTTP 500), causing PR CI to fail intermittently — see Cake.FileHelpers / Cake.Twitter recent failures.

Shipping a NuGet.Config at the repo root takes the if (FileExists(NugetConfig)) branch in the recipe and skips the broken MyGet fallback entirely.

Test plan

  • CI build (windows-2025) passes
  • CI build (ubuntu-24.04) passes
  • CodeQL passes

Cake.Recipe 4.0.0 hardcodes the (now-flaky) MyGet cake-contrib feed as
a fallback NuGet source when the repo lacks a NuGet.Config; see
Cake.Recipe Source/Cake.Recipe/Content/parameters.cake:361. Shipping a
NuGet.Config bypasses that fallback so transient MyGet 500s no longer
fail PR CI.

@gep13 gep13 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM!

@gep13
gep13 merged commit 652da8e into cake-contrib:develop May 3, 2026
4 checks passed
@gep13
gep13 deleted the nuget-config branch May 3, 2026 16:26
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.

1 participant