Skip to content

Fix NuGet push broken by quoted glob preventing bash expansion#237

Merged
304NotModified merged 2 commits intomasterfrom
copilot/fix-nuget-push-errors
Mar 7, 2026
Merged

Fix NuGet push broken by quoted glob preventing bash expansion#237
304NotModified merged 2 commits intomasterfrom
copilot/fix-nuget-push-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 7, 2026

PR #235 introduced double quotes around the glob pattern in the dotnet nuget push command, which prevents bash from expanding it — causing dotnet nuget push to receive the literal string artifacts/*.nupkg rather than actual file paths. Since the CLI doesn't support wildcards, it fails with File does not exist (artifacts/.nupkg).

Change

  • Remove quotes from the glob so bash expands it before passing to dotnet nuget push:
- run: dotnet nuget push "artifacts/*.nupkg" --api-key ...
+ run: dotnet nuget push artifacts/*.nupkg --api-key ...

This preserves the intent of #235 (push only .nupkg, not .snupkg) while letting bash perform the glob expansion correctly.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 7, 2026

Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
@304NotModified 304NotModified marked this pull request as ready for review March 7, 2026 22:15
@304NotModified 304NotModified merged commit 023c693 into master Mar 7, 2026
1 of 3 checks passed
Copilot AI changed the title [WIP] Fix nuget push error for missing .nupkg file Fix NuGet push broken by quoted glob preventing bash expansion Mar 7, 2026
@304NotModified 304NotModified deleted the copilot/fix-nuget-push-errors branch March 7, 2026 22:15
Copilot stopped work on behalf of 304NotModified due to an error March 7, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants