-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Hanging forever while tagging the release if git is configured to sign tags #3065
Comments
My bad, this belongs to |
Adding |
could you describe this behavior in a bit more detail and maybe what caused you to notice it? i've never noticed this sort of problem and dont recall anyone else reporting previously. is this when running locally, or within your ci pipeline? |
I finally identified the root of the issue after you pointed out in #3064 the difference between lightweight and annotated tags. I have
I've tried adding |
Issue updated ✅ |
Experiencing the same issue, |
Currently, signing tags on the CI using the [@semantic-release/git](https://github.com/semantic-release/git) plugin leads to the CI hanging indefinitely. See [this](semantic-release/semantic-release#3065) issue for more details.
Currently, the use of the [@semantic-release/git](https://github.com/semantic-release/git) plugin for signing tags in CI causes the process to hang indefinitely. Refer to [this](semantic-release/semantic-release#3065) issue for more details.
Currently, the use of the [@semantic-release/git](https://github.com/semantic-release/git) plugin for signing tags in CI causes the process to hang indefinitely. Refer to [this](semantic-release/semantic-release#3065) issue for more details.
Description
The release process will hang forever while creating the git tag for the release if git is configured to sign tags.
I tried running the
git tag v0.2.0 4d4917b17558245c1046f70f3e6bb73c9ee65a15
command myself and got this warning, so that confirms thegit tag
command is the issue:File /home/sherlox/workspace/TALENT_IDEAL/semantic_release_hex_test/.git/TAG_EDITMSG is being edited by sherlox (with VIM 8.2, PID 305634); open anyway?
Cause
The documentation for
git tag
states:Because having
tag.gpgsign
set totrue
is equivalent to passing the-s
/--sign
option to the git command, the command yields a dialog in the background and hangs the process forever.Possible solutions
See
lib/git.js:226
.--no-sign
option. Probably isn't a breaking change since signing tags is currently not working. There is already an open PR about this: #1589-m {tagName}
option. There are a few discussions about this already (see related issues below). There is also already an open PR about this: #1871For now, I'll just set
tag.gpgsign
tofalse
in the repository I need to release manually (which was just for preparing a demo repository for mysemantic-release-hex
plugin I'm planning to present on the Elixir forum soon).The annotated tag feature seems to be of interest to a few users, and #1871 looks pretty good overall, so I think we should push it forward sometime in the future.
Related issues
Tags signing
Annotated tags
The text was updated successfully, but these errors were encountered: