Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview package publishing broken #11196

Closed
Piedone opened this issue Feb 16, 2022 · 5 comments · Fixed by #11197
Closed

Preview package publishing broken #11196

Piedone opened this issue Feb 16, 2022 · 5 comments · Fixed by #11197
Assignees
Labels

Comments

@Piedone
Copy link
Member

Piedone commented Feb 16, 2022

Describe the bug

Currently, publishing the preview NuGet packages is broken. Started here after merging this PR. The "error: File does not exist (true)." error message is not exactly helpful.

To Reproduce

This happens on every build since then. Re-running the jobs doesn't help. Seemingly, everything is built fine up until then, and actually all packages are pushed despite the build failing.

Expected behavior

It works :|.

@Piedone Piedone self-assigned this Feb 16, 2022
@Piedone
Copy link
Member Author

Piedone commented Feb 16, 2022

I'm investigating this. While this started with the linked PR, I have no idea why any of the changes there, which are really simple, would case this.

@Piedone
Copy link
Member Author

Piedone commented Feb 16, 2022

Locally on Windows I get "error: File does not exist (./src/**/*.nupkg)." for dotnet nuget push './src/**/*.nupkg' -n true -s C:/local/path --skip-duplicate (it should be dotnet nuget push 'src/**/*.nupkg' -n true -s C:/local/path --skip-duplicate). So it dawned on me that "true" in the error is not a boolean but a path. However, I don't see how "true" in this command can be considered a path ,unless the publish key is something really strange and changed just yesterday - but it didn't (checked the secrets).

@Piedone
Copy link
Member Author

Piedone commented Feb 16, 2022

.NET changed from 6.0.102 to 6.0.200.

@Piedone
Copy link
Member Author

Piedone commented Feb 16, 2022

Tried locally with 6.0.102 and there's no issue (also tried publishing to a Cloudsmith repo). Updated to 6.0.200 and I get the same error, even with local publishing: dotnet nuget push 'src/**/*.nupkg' -n true -s C:\local-path --skip-duplicate.

It's a .NET bug :(. Somebody noticed it just now too: NuGet/Home#11601

@Piedone
Copy link
Member Author

Piedone commented Feb 16, 2022

Found a workaround.

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 a pull request may close this issue.

1 participant