Skip to content

Nuget packages built by the Go CLI are not valid for GitLab #10132

Description

@bec-callow-oct

Severity

No response

Version

Earliest tried was 2026.3.5562

Latest Version

I could reproduce the problem in the latest build

What happened?

When using the Go CLI to create a NuGet package via octopus package nuget create, the package is created with bit 3 set which is not supported by GitLab.

Relates to this closed Go issue.

Steps to reproduce:

  1. Create a source folder with at least one file (e.g. lib/sample.txt)
  2. Run octopus package nuget create to build TestPackage.1.0.0.nupkg
  3. Push it to a GitLab Package Registry: dotnet nuget push TestPackage.1.0.0.nupkg --source <gitlab-nuget-index-url> --api-key <token>
  4. Push returns 500 Internal Server Error

Reproduction

500 internal server error returned. The GitLab UI shows that the package was not uploaded.

Error and Stacktrace

More Information

No response

Workaround

The only known workaround is currently to repackage the nuget file. PowerShell:

$nupkg = "MyPackage.1.0.0.nupkg"
$extractDir = "temp_extract"

Expand-Archive -Path $nupkg -DestinationPath $extractDir -Force
Remove-Item $nupkg
Compress-Archive -Path "$extractDir\*" -DestinationPath $nupkg

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugThis issue represents a verified problem we are committed to solving

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions