Skip to content

Fix nuget push retry loop hanging forever on GitHub Packages - #30

Merged
Mpdreamz merged 1 commit into
masterfrom
fix/nuget-push-no-symbols-hang
Sep 2, 2026
Merged

Mpdreamz merged 1 commit into
masterfrom
fix/nuget-push-no-symbols-hang

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Fixes CI run 33666135006, which never finished.

Why

--no-symbols is a boolean switch in dotnet nuget push — it takes no value. The publish to github package repository step had a stray trailing true after it (--no-symbols true), which dotnet nuget push parses as a second positional package-path argument instead of a value for the flag. No file named true exists, so every invocation fails with:

error: File does not exist (true).

That failure is inside until dotnet nuget push ...; do echo "Retrying"; sleep 1; done, so instead of failing once, it retried the exact same broken command forever — the job just ran until someone cancelled it.

What

Drops the stray true, matching the already-correct form used by nupkg-validator and assembly-rewriter's equivalent steps.

Verify

Confirmed via the failed run's log: package pushes that were new succeeded ("Your package was pushed"), pushes for already-existing versions correctly hit --skip-duplicate's "Conflict" (non-fatal) path, and the loop only ever failed on the trailing error: File does not exist (true). — never on an actual push.

Made with Cursor

--no-symbols is a boolean switch in dotnet nuget push and takes no
value; the trailing "true" was parsed as a second package-path
argument, which doesn't exist ("error: File does not exist (true).").
Every retry in the until loop hit this same parse error, so the step
never exited and the job ran until it was cancelled.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Mpdreamz Mpdreamz added the bug Something isn't working label Sep 2, 2026
@Mpdreamz
Mpdreamz merged commit e225cd9 into master Sep 2, 2026
2 checks passed
@Mpdreamz
Mpdreamz deleted the fix/nuget-push-no-symbols-hang branch September 2, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant