Skip to content
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

version:absorb always throws 'GitTagNotFound' Error. #71

Open
butcherman opened this issue Oct 19, 2019 · 2 comments
Open

version:absorb always throws 'GitTagNotFound' Error. #71

butcherman opened this issue Oct 19, 2019 · 2 comments

Comments

@butcherman
Copy link

I am trying to setup my config file to use the latest commit hash, but when I try to run the 'absorb' command, I get the 'GitTagNotFound' error. I tried the fixes in #48, but they did not do the trick.
Annotation 2019-10-18 195631

@gjj
Copy link
Contributor

gjj commented Dec 7, 2019

I got the same issue as you but upon further investigation, it's because of the matcher field. Even if you have Git tags, so long as the format doesn't match the regex in matcher, it will show up throw the GitTagNotFound exception.

@antonioribeiro already highlighted here that you'd have to change the regex to match whatever Git tag format you use. Try using this regex fiddler to see if the version tag (run git describe) can be matched by the regex in matcher.

@praj
Copy link

praj commented Apr 23, 2020

I also had a similar problem I had to update the git version local matcher from just git describe to git describe --tags. Note you first need a tag associated with your latest commit that matches your version format e.g. a tag 1.0.0 for your first git commit hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants