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

fix: NuGet symbols not published (#3954) #3966

Merged
merged 2 commits into from
Oct 8, 2019
Merged

fix: NuGet symbols not published (#3954) #3966

merged 2 commits into from
Oct 8, 2019

Conversation

aloker
Copy link
Contributor

@aloker aloker commented Oct 8, 2019

Updates the build script to handle the newer snupkg format.

Please try and check if this works - can't test it with the official nuget packages obviously.

refs #3954

Updates the build script to handle the newer snupkg format.
let normalPackages=
!! (outputNuGet @@ "*.nupkg")
-- (outputNuGet @@ "*.symbols.nupkg") |> Seq.sortBy(fun x -> x.ToLower())
let normalPackages= !! (outputNuGet @@ "*.nupkg") |> Seq.sortBy(fun x -> x.ToLower())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No .symbols.nupkg files are created anymore, just .nupkg and .snupkg.

for package in normalPackages do
try
publishPackage (getBuildParamOrDefault "nugetpublishurl" "") (getBuildParam "nugetkey") 3 package
publishPackage (getBuildParamOrDefault "nugetpublishurl" "https://api.nuget.org/v3/index.json") (getBuildParam "nugetkey") 3 package
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's crucial: auto pushing related snupkg files only works with the V3 API.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Been meaning to make that change myself - we should probably also update the build-system/windows-release.yaml file too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, PR updated

@Aaronontheweb
Copy link
Member

@aloker one last change:

let shouldPushSymbolsPackages = (hasBuildParam "symbolspublishurl") && (hasBuildParam "symbolskey")

Is there ever a condition where we wouldn't want to try to push debug symbols? Is this check necessary any more?

@aloker
Copy link
Contributor Author

aloker commented Oct 8, 2019

If auto-publishing the related snupkg files works, the check and the whole second part (publishing snupkg files) isn't necessary. I'm not sure if auto-publishing always works for private package servers or if this hardcoded for nuget.org only. I don't have a private package server at hand that's uses the V3 API.

Personally I'd leave it in just in case someone publishes to a private package server and needs to push the symbols separately.

@Aaronontheweb Aaronontheweb merged commit cda544c into akkadotnet:dev Oct 8, 2019
Aaronontheweb pushed a commit to Aaronontheweb/akka.net that referenced this pull request Nov 14, 2019
* fix: NuGet symbols not published (akkadotnet#3954)

Updates the build script to handle the newer snupkg format.

* Update windows-release.yml to use V3 API of nuget.org (akkadotnet#3954)
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