Unable to download a package with metadata from a GitHub NuGet feed
Team
- [X] I've assigned a team label to this issue
Severity
One customer blocked, the workaround isn't available for the step they're using.
Version
2021.3
Latest Version
I could reproduce the problem in the latest build
What happened?
When a package with metadata (e.g. 1.0.0.21+2f052aba) is added to GitHub Packages and retrieved via an external NuGet feed it will not retrieve the metadata and then fail due to a mismatch.
e.g.
The package version ‘1.0.0.21+2f052aba’ for ‘xxx’ returned from the package repository doesn’t match the requested package version ‘1.0.0.21’
Reproduction
- Add a package with version
1.0.0.21+2f052abato a GitHub Packages NuGet repository - Configure a NuGet external feed in Octopus for this repository
- Add a
Deploy a Packagestep that makes use of this feed and package - When creating a Release, note that the package version states
1.0.0.21and doesn't include the metadata - Attempt a deployment, it will then fail due to a version mismatch
Error and Stacktrace
The package version '1.0.0.21+2f052aba' for 'Sample.NuGet.Package' returned from the package repository doesn't match the requested package version '1.0.0.21'. For a detailed troubleshooting guide go to http://g.octopushq.com/TroubleshootMissingPackages
More Information
We tested this using an Artifactory NuGet feed without experiencing any problems. When creating the release using that feed the metadata was returned for the package.
I have a Cloud instance and GitHub repo configured for this issue and can provide access if needed.
Workaround
If using a step that targets a Tentacle selecting the option to download the package directly on the target should allow the package to be retrieved successfully. e.g.