-
Notifications
You must be signed in to change notification settings - Fork 3
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
Suffering "would clobber existing tag" when reusing repository cache #8
Comments
Hey @mikaello , |
Click to see full job log of failing pipeline
We have been using this plugin for a couple of weeks without experiencing this problem, so it may be something special with this repository, but on the other hand it was this plugin that created the
So to answer your questions:
After
This tag was not created locally, but by this plugin. |
Thanks for the reply @mikaello
Sorry I put it wrong. I meant locally on the runner/pipeline/job and then there was some error when actually pushing the tag and when retrying this error occurred, could this have been the case? If yes I would appreciate the logs from the job before the So the potential scenario you might have faced in steps:
HOWEVER, it's not a guarantee that this could have been the problem. If the fetch was using Does this error happen often or very rarely btw? |
I am using this plugin in a GitLab CI/CD pipeline and recently got this error:
This is because the default Git strategy was to use
git fetch
to get the repository, it then reused previous artifacts which caused this error to happen.If the fetch function in semantic-release had fetched the tags with
--force
this would not have been a problem. Another solution is to make sure that the CI/CD pipeline always clones a fresh repository. In GitLab this is done by adding this to the job making the release:This may not be an issue for GitHub actions users, but in case others come across the same error this may at least be the root cause.
The text was updated successfully, but these errors were encountered: