-
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
Snupkg(symbols packages) auto push alongside the main package #8016
Comments
Hmm, documentations says it does:
Anyway, it didn't work even when I expliticely did Maybe I need dotnet 2.2 to make it work. Gonna test it out. |
I don't think those docs are correct. @loic-sharma, @cristinamanum, @karann-msft I see you've made changes to those docs. To my knowledge, NuGet never auto-pushed snupkgs. |
My understanding is that we started to auto-push with snupkg. I will check this out in a while. @Pzixel, did you try |
@anangaur yes, that's what I did. Here is an actual config: https://github.com/Pzixel/Solidity.Roslyn/blob/4b90ba4440be4559743260124de0bdf44c722f32/.circleci/config.yml#L24-L41 I hardcoded versions to make sure it's not because of some placeholder in the path. |
@Pzixel Thanks for reporting. Will take a look. I haven't been able to be on top of snupkg experiences recently - something I plan to work on, this week. I have a feeling that in this case, the source might be incorrect. @cristinamanum, can you confirm?
|
@Pzixel, Thanks for reporting this! You can fix this by changing your source from Here are what we can do to improve this situation:
|
That's weird
It looks like it indeed has a discovery. |
I am trying to understand the impact of this bug |
To clarify: To check this, please looks at the json output from : https://api.nuget.org/v3/index.json Azure devops does not have this. And also github does not provide it. See: https://nuget.pkg.github.com/v3/index.json Looking at this thread, this seems to cause a lot of confusion. Nuget.exe could improve this a lot if it had a warning which informs the user that it cannot push the existing .snuget package because the server's API cannot consume it. Where can I vote or help? :-) |
this doesnt work because you need to push nupkg first and snupkg after when I try with your code, it says that its duplicate although 2 different extension? |
We are using GitHub Actions + GitHub Packages to host our NuGet packages, and we just get this error. We are indeed using the following command: @moses70 this is what you were saying, right? Basically, only nuget.org supports this, GitHub Packages isn't ready yet. |
@nelsonprsousa Yes GitHub does not support .snupkg yet. Here are alternatives: |
Thanks! 🚀 |
Does anyone know if GitHub packages Nuget feed now have support for pushing symbols/v3, or any plans for it? It would be great since net7 now has the new |
Details about Problem
NuGet product used: dotnet.exe
NuGet version (5.0.0):
dotnet.exe --version: 2.1.602
VS version: 16.0.1
OS version: win10 v1809 (17763.437)
Detailed repro steps so we can see the same problem
dotnet pack ProjectName --configuration=Release --include-symbols --output nupkgs
dotnet nuget push ProjectName/nupkgs/*.nupkg -k $NUGETAPIKEY -s https://www.nuget.org
Expected results:
symbols gets pushed to the nuget server
Actual result:
snuget
file gets created, but it's not pushed to the server.Verbose explanation:
If you try to push nuget package with symbols via relative path without having current working directory the same as where files sits then symbols don't get discovered and pushed to the server.
I suspect that "
snuget
discrovery" works in current working directory instead of looking around the file.P.S. It didn't work even when I explicitely called
dotnet nuget push ProjectName/nupkgs/*.snupkg -k $NUGETAPIKEY -s https://www.nuget.org
manuallyThe text was updated successfully, but these errors were encountered: