Skip to content

Add a setting for allowing/disallowing duplicate NuGet package uploads

Problem to solve

When using the GitLab Package Registry to publish NuGet packages, a duplicate package name/version can be uploaded. This may be great for snapshots, but you may want your releases to be immutable.

Proposal

Add a setting that will allow you to define (at the group level) whether or not duplicate NuGet packages are allowed.

Further details

Please make sure that the dotnet cli command line option "--skip-duplicate" works, which means you should return the same error that nuget.org returns, when a duplicate is uploaded.

Edited by Tim Rizzi