-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
fatal: tag 'project-name-0.1.0' already exists #569
Comments
@gabsmprocha this means that you already created a tag |
You don't need to fetch the tags as |
but when i checkout using |
the problem with deleting the tags is that the release would not increment, because it would always end up going back to 0.1.0, I believe that if the tag already exists, shouldn't the plugin try to increment it? |
because your tag does not point to the base branch that semver uses so it can't calculate the new version from it. |
And what is the base branch that semver uses? because it is executed in a workflow after the merge in main |
the default is main, your worklow runs on main as well? |
yes, running based on main, as the repository uses squash merge we make this base and head definition that I gave you above to have the output of affected projects |
the error happens even if I run locally |
are you sure the tag |
yes |
Umh, that's hard to tell then, can I access the repo by any chance? |
unfortunately not, because it's a private repository, I decided to go for a last-release milestone strategy, similar to what I could see you guys do, but I had another doubt, how can I include the dependencies changes on my changelog? can you help me understand this point? @edbzn |
I'm facing this issue sometimes as well. The old tag exists in my "main" branch but sometime's it still says this tag exists. And for few it start's saying No Previous version found. But I've cross checked all the tags are still there in my main branch. We also merge branches after squashing incoming branch commits but it shouldn't create any issue because all the tag references are there in master. |
I had the same issue and I noticed that merging the release PR with squash instead of merge commit was breaking the link between tag and the main branch, can this be the cause? |
I was stumbling into the same issue. I have the master branch and feature branches, and I release alpha versions on feature and normal versions on master. When master is on 0.1.0 and FEATURE-1 does an alpha release, it will create 0.1.1-alpha.0 Now the problem will occur, when I don't merge this branch on master and open FEATURE-2. it will also start from version tag 0.1.0 (from master) and will create tag 0.1.1-alpha.0 and then the error occurs, as git branches are valid across all branches. I'm currently solving this by bringing the branch name into the --preid, so it will create 0.1.1-FEATURE-1-alpha.0 |
Hi guys,
this problem always happens in github actions, even though I do a git fetch --tags before
The text was updated successfully, but these errors were encountered: