Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Unable to download a package with metadata from a GitHub NuGet feed

Open calverp opened this issue 4 years ago • 4 comments

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

  1. Add a package with version 1.0.0.21+2f052aba to a GitHub Packages NuGet repository
  2. Configure a NuGet external feed in Octopus for this repository
  3. Add a Deploy a Package step that makes use of this feed and package
  4. When creating a Release, note that the package version states 1.0.0.21 and doesn't include the metadata
  5. 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.

image

calverp avatar Jan 11 '22 08:01 calverp