-
Notifications
You must be signed in to change notification settings - Fork 252
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
nuget push *.nupkg
fails when snupkg does not exist
#8148
Comments
@donnie-msft - can you confirm if this is a new break in 5.1, please? |
Confirmed as not a new break, but the Warnings about snupkgs do not make sense and should be fixed. The Warning regarding symbols is due to a recognition that the Source can accept symbols, and it then incorrectly assumes there are snupkgs being pushed when there aren't (like in this case). SkipDuplicate is not coming into play, as it is only allowing the code to continue until it hits the warnings above. |
Having this issue building and publishing packages, packages are published to our private repository but the Jenkins jobs fail because of the "*.snupkg" issue. when can we expect a fix ? |
@Tychus, This issue is only about a Warning, which doesn't sound like it should fail something like Jenkins, AFAIK. Not sure it's relevant, but curious if somewhere you have a setting like "Treat Warnings as Errors" enabled? |
new to nuget packages, we use
we fixed this by ignoring the return of the command since it always pushes the packages we need. Don't think we have fail on warnings as other build steps generate warnings but never broke builds. |
I hit the same issue today. Details here: https://github.com/anangaur/entropy-packages/commit/c3a21773faa4d2d6f250e2906be91bb201627e2d/checks |
I have the same issue with |
I was hit by this issue today. Even downloading older version of nuget (4.5.1) didn't fix the problem. But I've found a workaround: don't use wildcards (*.nupkg), just use the exact file name. |
@knocte Any news, or is it still required to use the exact filename? |
Could this help? (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push)
|
@StefH no, I had tried it. No help despite it really should |
Having the same issue |
In addition to this problem, if a symbol package is available, it is always pushed even if the SkipDuplicate option has been added. We have the following error on the nuget.org side because the package and symbols no longer match.
If both packages are pushed at the same time (e. g. due to a version change), the problem does not occur. |
Using a wildcard with the nuget push is causing an erroneous failure - issue is recorded at NuGet/Home#8148
Per this [issue](NuGet/Home#8148) I added a flag to the push command. This is also a chance to see what happens if I push the same package to NuGet twice.
Merged and should go out in 5.6 Preview 2.
Quick clarification about this PR: @Aarklendoia Your scenario sounds a bit different. I'm curious, how are you packing your nupkg/snupkg before you re-push them? I think there's confusion in what SkipDuplicate does in this case. It does not actually prevent a snupkg from being uploaded to the Server. It will simply ignore any response code that indicates "Conflict". Docs should be clarified, so please comment on this issue to provide your feedback: #9338 |
Workaround for symbols issue with wildcards. See NuGet/Home#8148
Adding "-NoSymbols" to nuget push command fixed my issue. |
nuget push *.nupkg
fails with snupkg does not exist
nuget push *.nupkg
fails with snupkg does not existnuget push *.nupkg
fails when snupkg does not exist
I believe dotnet.exe 3.1.3xx contains this change https://github.com/dotnet/cli/pull/13324/files |
I am trying to push a bunch of nupkg which do not have snupkg, using nuget.exe 5.1.0,
Expected: no warnings or errors related to snupkg should show up if no snupkgs are found in the path.
Update: @donnie-msft added more info and tasks in this comment
The text was updated successfully, but these errors were encountered: