Is it possible to prevent nugets from being re-uploaded to the account feed?

matthew.wilton's Avatar

matthew.wilton

01 Jun, 2018 01:24 AM

Some nuget servers provide functionality that prevents a package from being uploaded if it already exists in the feed (one with the same name and same version). This post on package management for VSTS explains some of the reasons for this https://docs.microsoft.com/en-us/vsts/package/feeds/immutability?view=vsts

I'd like to be able to enable the same functionality for the Appveyor account feed to ensure packages are immutable. Is there a way to enable this?

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Jun, 2018 03:44 AM

    Feodor Fitsner's Avatar

    So, what would be the behavior when the immutability enabled: error or silent continuation?

  2. 2 Posted by matthew.wilton on 01 Jun, 2018 04:10 AM

    matthew.wilton's Avatar

    My preference would be for it to error with a 409. This is the behaviour I have seen from other nuget feeds, for example NuGet.Server appears to have a configuration option that toggles this behaviour https://github.com/NuGet/NuGet.Server/blob/master/src/NuGet.Server/Web.config#L34

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac