You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some cases where a tag already exists, so when the git tag command tries to tag HEAD, it fails with the message fatal: tag '' already exists. However, the script doesn't exit 1 so the CI pipeline continues.
% bash semtag final -s patch
fatal: tag 'v0.0.4' already exists
v0.0.4 pushed to origin
This is a very simple fix: just add || exit 1 to the git tag -a $__version -m "$__message" command on line 516:
Git's error message is satisfactory so no need for additional logic just for a custom messages.
There is another option: add set -o errexit to the top of semtag. However, I believe this will require additional changes to the semtag to make it work correctly.
The text was updated successfully, but these errors were encountered:
There are some cases where a tag already exists, so when the
git tag
command tries to tagHEAD
, it fails with the message fatal: tag '' already exists. However, the script doesn'texit 1
so the CI pipeline continues.This is a very simple fix: just add
|| exit 1
to thegit tag -a $__version -m "$__message"
command on line 516:semtag/semtag
Line 516 in f5b2c67
Git's error message is satisfactory so no need for additional logic just for a custom messages.
There is another option: add
set -o errexit
to the top of semtag. However, I believe this will require additional changes to the semtag to make it work correctly.The text was updated successfully, but these errors were encountered: