publish-nuget icon indicating copy to clipboard operation
publish-nuget copied to clipboard

[FEATURE] Failing if a nuget package with same version already exists

Open AnmolSinha1201 opened this issue 5 years ago • 5 comments

This usually happens when we already have a nuget package with the same version already hosted on nuget. AFAIK, since we are not allowed to "replace" a package on nuget, is it possible for you to fail instead? That way, if this is already part of a pipeline, the pipeline would actually fail and it would be a reminder for us to update the version.

AnmolSinha1201 avatar Aug 04 '20 22:08 AnmolSinha1201

Strange 🤔 with the change detection in place it shouldn't event try to push a package with same version could you provide the action log to get a better idea?

brandedoutcast avatar Aug 08 '20 04:08 brandedoutcast

Yeah, it doesn't push the package with same version. What I am asking for is, to throw an exception too, if the same version exists. That way, the pipeline would fail. You can hide this behind a flag so it remains compatible with earlier versions.

AnmolSinha1201 avatar Aug 09 '20 08:08 AnmolSinha1201

+1 would be useful to fail whole build if we forget to increment version

Marfusios avatar Sep 15 '20 13:09 Marfusios

Would absolutely love this feature!

hhoangnl avatar Oct 02 '20 16:10 hhoangnl

Secondarily to @Marfusios's comment, it'd be great if we could get a version that runs on PRs (no publish) to check whether the version already exists. (May be a "no publish" feature request)

gregsdennis avatar Nov 11 '20 20:11 gregsdennis