New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goreleaser attempt to release an existing tag and fail #3609
Comments
hmm, will see what I can do... as a workaround you can set |
Thanks, the workaround should work, meanwhile please help to check if this problem can be fixed in any of the new releases. |
it might not be possible to fix. |
explaining: if I revert that commit, it'll break somewhere else... and it seems like git cant sort by multiple fields and does not take the semantic version fields into consideration (it seems). what we might be able to do is add a config for the sorting, so its the user responsibility. But its more of a feature than a bug... |
This command |
nope, that would return v0.0.1 instead of v0.0.2, for example... |
another idea would be to use |
please check #3611 |
closes #3609 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
What happened?
Due to the change in this PR, when there is a pre-release, the command
git tag --points-at HEAD --sort -version:refname
generates below result, from which goreleaser picksv1.10.0-rc.2
to create the release. It is expected to pickv1.10.0
, andv1.10.0-rc.2
has been released:How can we reproduce this?
Release one pre-release, for example,
v1.10.0-rc.2
Don't make any new commit so as to keep the HEAD unchanged
Create a GA release, for example,
v1.10.0
[Result] The second release fails
goreleaser version
GoReleaser Check
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: