add option to enable overwriting existing package for nuget #9737

Open
opened 2025-11-02 08:48:00 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @tky753 on GitHub (Oct 26, 2022).

Feature Description

I used BagetSonatype NexusJFrog Artifactory for nuget package management before, they all support or have options to allow overwriting existing packages.
without this function, I have to call nuget delete --non-interactive before nuget push for all my projects, (I have more than 50 projects with same version, so I can't easily upgrade the version)

Screenshots

No response

Originally created by @tky753 on GitHub (Oct 26, 2022). ### Feature Description I used [Baget](https://github.com/loic-sharma/BaGet)、[Sonatype Nexus](https://github.com/sonatype/nexus-public)、[JFrog Artifactory](https://jfrog.com/artifactory/) for nuget package management before, they all support or have options to allow overwriting existing packages. without this function, I have to call `nuget delete --non-interactive` before `nuget push` for all my projects, (I have more than 50 projects with same version, so I can't easily upgrade the version) ### Screenshots _No response_
GiteaMirror added the topic/packagestype/proposaltype/feature labels 2025-11-02 08:48:01 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Oct 26, 2022):

The NuGet spec indirectly forbids that: https://learn.microsoft.com/en-us/nuget/api/package-publish-resource#response
Even deleting a package version and reusing it is bad practice.

If we still want this, it's a small change.

@KN4CK3R commented on GitHub (Oct 26, 2022): The NuGet spec indirectly forbids that: https://learn.microsoft.com/en-us/nuget/api/package-publish-resource#response Even deleting a package version and reusing it is [bad practice](https://stackoverflow.com/questions/44844661/overwrite-nuget-packages-in-feed-on-visual-studio-team-services). If we still want this, it's a small change.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9737