-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add Support for snupkg Symbol Packages #2753
Comments
Also @IlyaFinkelshteyn it seems that since early today the nuget symbol server upload started failing all my tag builds right after uploading the main part to nuget itself.
|
@AraHaan it seems to be an issue with expired certificate at https://nuget.smbsrc.net |
Ah ok, so it is their end. |
@AraHaan when we implement snupkg Symbol Packages (should not take long), you will be able to use NuGet.org symbol server. |
@IlyaFinkelshteyn |
@IlyaFinkelshteyn any updates? |
We are working on it right now. Cannot say specific date, but believe it should be released within a month. |
@IlyaFinkelshteyn Thanks for the update. Is there a workaround until it works built in? I can't do a manual push through cmd/ps1 without leaking nuget secret afaik? |
Sure, secure variables are here to make it safe :) Sorry it takes this long. |
@IlyaFinkelshteyn no problem. Glad you took the time to respond. |
For anyone who needs a workaround:
|
Any update on adding support for snupkg files without going to custom scripts? |
hmmm well I think while snuget is a thing now, I might as well also use the source link thing where debugging downdloads the source code (if the file is in the repository) from the commit the build is from and so that way if one debugs without a git clone (or git installed at all) they can see the source in visual studio. |
AFAIK the two mechanisms are orthogonal. You still need a |
Yes, that is true, however with my stuff being open source, I think it might help those that are AFAIK lazy to clone the actual project just to debug it. However currently my problem locally is debugging a msbuild task dll that gets the git repository information and creates a custom Infact said Then again this information could also be helpful if appended to the assembly's file description too. |
I don't think it is a matter of laziness as much as convenience. Visual Studio already has the feature built in to discover the symbols and retrieve the source code for a nuget package. The alternative to clone the repo locally and either build it and add a project reference or reference to the assembly seems unnecessary. Perhaps VS will also prompt for a source directory and you can just reference the cloned directory but it still seems like an unnecessary step when the feature has been developed that does all of this for you. |
And from Appveyor's standpoint, this is just a parameter change to the nuget pack command. I could see a checkbox added asking if snupkg should be generated and adding "-SymbolPackageFormat snupkg" to the nuget command line if selected. |
Any updates @IlyaFinkelshteyn? |
Please note that #2753 (comment) isn't working well in all cases. If you have another commit without a new version number, if will republish the snupkg and not the nupkg and that could "kill" the symbol packages on nuget.org (if your code has been changed) You will check then: One Solution is to use gitflow |
Any progress? According to the docs, the publish URL is merely |
@RehanSaeed @mauroservienti sorry my ignorance, was under impression that it is a nuget.org-only feature. If you check myget.org V3 feed it does not contain any entry of How would you push |
@stakx @StephenCleary this is error which happens when AppVeyor tries to publish |
Thanks for your reply @IlyaFinkelshteyn. My bad, I started from the assumption that symbol packages were symbol packages regardless of the format of the packages itself. This is not the case, I’ll just disable pushing the package to MyGet till they come up with support for them. |
@IlyaFinkelshteyn unfortunately there is an issue.
result: (same issue as here - but that was a custom script - #2753 (comment)) expected: snupkg is skiped if nupkg is skipped |
@xavierdecoster do you know if MyGet is going to support |
It's the #1 voted suggested feature on myget.uservoice.com, by far. |
@304NotModified thank you for the catch, looking into it... |
Is this already live on appveyor.com ? I can`t get it to publish .snupkg using UI configuration anyhow. It seems to ignore the existence of .snupkg during deployment. |
@kovall thanks you exposed more general issue as you see in the referenced bug. Should be fixed this week. Meanwhile it works on our mainstream images ( |
@kovall should work on |
@IlyaFinkelshteyn confirmed working on VS2019 image. Thanks for notification and fix 👍 |
@304NotModified issue with duplicate publishing you described here fixed. |
Hey @IlyaFinkelshteyn I'm still having issues publishing the symbols to NuGet. Here is the current yml: https://github.com/speckleworks/SpeckleCore/blob/nuget/appveyor.yml Am I missing something? |
Awesome, thanks a ton! |
I changed the artifact filter to |
Also removing the artifacts line completely, hasn't pushed the |
I'll open a new issue. |
Does this work for a custom symbols path? It appears that it still doesn't. |
@navidmatin you can use |
NuGet added support for the new snupkg symbol package format. It would be nice if AppVeyor picked these files up and was able to publish them to NuGet directly.
The text was updated successfully, but these errors were encountered: