Skip to content

fix: Use bash to expand glob in NuGet push step - #995

Merged
dtchepak merged 1 commit into
nsubstitute:mainfrom
zvirja:fix-nuget-push-windows-glob
Aug 11, 2026
Merged

fix: Use bash to expand glob in NuGet push step#995
dtchepak merged 1 commit into
nsubstitute:mainfrom
zvirja:fix-nuget-push-windows-glob

Conversation

@zvirja

@zvirja zvirja commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Follow up on #987.

I didn't have a chance to test it and apparently there are issues with globbing and powershell. Let's try this change and see if it helps. You'll have to re-create the tag. Just delete the tag and then go to releases and create it one more time :)

PowerShell doesn't glob-expand arguments to external commands, so
`bin/*.nupkg` was passed to dotnet nuget push literally on windows-latest,
which failed to resolve the wildcard itself and errored with
"File does not exist (bin/*.nupkg)" even though the package existed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@zvirja
zvirja requested a review from dtchepak August 11, 2026 10:53

@dtchepak dtchepak 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.

Thanks!

@dtchepak
dtchepak merged commit 05109e8 into nsubstitute:main Aug 11, 2026
4 checks passed
@zvirja
zvirja deleted the fix-nuget-push-windows-glob branch August 11, 2026 11:04
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.

2 participants