Fails to get last tag
See original GitHub issueFor some reason semantic release is getting the last release tag incorrectly.
In my case it gets v27.5.0
when the last version is v27.5.1
, which is correctly pushed in GitHub repository. Later the release fails because the packages tries to push v27.5.1
but it already exists.
We had to move to manual releases just because of this, and there’s apparently no way to break this missed release cycle. I’m pretty sure this is a bug on this utility but couldn’t figure out which one, and sadly I can’t provide much more details since the repo and packages are private.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How can I get the latest tag name in current branch in Git?
To get the most recent tag (example output afterwards): git describe --tags --abbrev=0 # 0.1.0-dev. To get the most recent tag, with the...
Read more >What's Wrong With The Docker :latest Tag? - vsupalov.com
Docker images tagged with :latest have caused many people a lot of trouble. ... The 'latest' tag does not actually mean latest, it...
Read more >git-describe Documentation - Git
The command finds the most recent tag that is reachable from a commit. If the tag points to the commit, then only the...
Read more >Git builds queued from tag fail - Visual Studio Feedback
I queue a new (vNext) build from TFS, when I go to select a Branch, I have a tab available for Tags. If...
Read more >git tag | Atlassian Git Tutorial
The previous tagging examples have demonstrated operations on implicit commits. ... the same identifier as an existing tag, Git will throw an error...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The output might depends in the version of git you are using. To be sure check the exit code of that command.
Cool, yeah I just re-pushed the tag and the return value is
0
, hope this fixes our next release. I’ll come here later to confirm if this solved the solution, also it would be good if you had a troubleshooting document for this type of cases so we don’t bother you that much. I would love to contribute but I don’t have enough knowledge to do it.Thanks again for your help @pvdlg.