question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to get last tag

See original GitHub issue

For 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pvdlgcommented, Sep 5, 2018

The output might depends in the version of git you are using. To be sure check the exit code of that command.

git merge-base --is-ancestor v27.5.1 master
echo $?
// => Return 0 if in history, something else otherwise
0reactions
jeremenichellicommented, Sep 5, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found