Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

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

Open
AnmolSinha1201 opened this issue Aug 4, 2020 · 5 comments · May be fixed by #47 or #52
Open

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

AnmolSinha1201 opened this issue Aug 4, 2020 · 5 comments · May be fixed by #47 or #52
Assignees
Labels
enhancement New feature or request

Comments

@AnmolSinha1201
Copy link

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 AnmolSinha1201 added the enhancement New feature or request label Aug 4, 2020
@brandedoutcast
Copy link
Owner

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?

@AnmolSinha1201
Copy link
Author

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.

@Marfusios
Copy link

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

@hhoangnl
Copy link

hhoangnl commented Oct 2, 2020

Would absolutely love this feature!

@Rebel028 Rebel028 linked a pull request Oct 20, 2020 that will close this issue
luizbon added a commit to luizbon/publish-nuget that referenced this issue Nov 5, 2020
Fix brandedoutcast#43
Adding the PackageVersion parameter to the pack command will make the output file to respect it.
@luizbon luizbon linked a pull request Nov 5, 2020 that will close this issue
@gregsdennis
Copy link

gregsdennis commented Nov 11, 2020

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
5 participants