-
Notifications
You must be signed in to change notification settings - Fork 255
Updates were rejected because the tag already exists in the remote #803
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
Comments
@rosaLux161, the first error where it pushed both 0.0.1, and 1.0.1, is very odd to me. I don't know why that would happen. However, your second bug I have seen before, especially since you are using GitLab. I detail the answer here #724 (comment), but basically the algorithm cannot find the merge-base commit because you likely have a shallow repo. Try the unshallow fix from the other post and let me know if it fixes it. |
I might see if I can change the push command to only push the new tag to avoid the first failure. |
I've implemented your fix and this seems to work. |
…ated Restricts the git push command to only push the explicit tag we created which will eliminate the possibility of pushing another tag that could cause an error. Resolves: python-semantic-release#803
…ated Restricts the git push command to only push the explicit tag we created which will eliminate the possibility of pushing another tag that could cause an error. Resolves: #803
Resolved only push new tag in |
The problem
semantic-release version
determines a new version, runs the build command and fails withfailed to push some refs
. Version number in pyproject.toml is not updated. However the new tag is successfully created and changelog is pushed.Expected behavior
No error.
Environment
Please state which OS you are using and provide the output of the following commands:
Configuration
(config meanwhile completely mixed up by trying around with many different values, so I'm not sure anymore what is required and why)
Logs
Please provide debug logs for the command you are using with the
-vv
flag, e.g.EDIT:
I've tried to remove all tags, now i get this:
The text was updated successfully, but these errors were encountered: