-
Notifications
You must be signed in to change notification settings - Fork 32
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
git describe --always doesn't show the current tag #14
Comments
Hi @laurrentt thanks for the report - however, I'm not seeing the behavior you're describing on my mac -
In a repo without tags:
This could possibly be caused by a git version mismatch - I'm running git version 2.15.1. Thanks! |
Hi @jacob-meacham, thx for taking the time to reply to my issue 😄 I've found why we don't have the same output with the same command here: https://stackoverflow.com/a/4154518/970247. In short, I'm using GitHub releases to create my tags. It creates lightweight tags (instead of annotated ones) which can't be seen with only I think adding the What do you think? |
@laurrentt this change will potentially alter behavior for others (if they're using both light and annotated tags) - can we hide it behind a flag (default off) for now? When I next make a breaking release, I'll change the flag to default true. Thanks! |
Yes you're absolutely right, I didn't think it through. I think considering this, even after making a breaking change, this could still be a problem for current users. Would you consider making a new variable called something like lightweightTag that would execute Thanks again for taking the time to answer |
I think I'd prefer adding a config point for this instead of a different git variable - for a particular project, it seems unlikely to me that someone would want both behaviors. So something like:
and then default it to false |
Hey, I also use lightweight tags, being able to visually grep my functions by Github releases/tags would be really useful. Both having a @jacob-meacham would you have a problem with me opening a PR to implement the |
@domroutley nope, that sounds excellent! |
Add lightweight tags variable funcionality, resolves #14
I've been looking for way to use my git tags as serverless variables and your project seemed like the perfect match. Although I'm still not able to get tag to show up, only the git sha.
I'm using
${git:describe}
and I think it was expected that it showed the tag, at least according to the latest release note:In my experience to display the tag you had to add the
--tags
after--always
in order to show the current tag you're on. I thought maybe it was macOS specific, however I tried on Ubuntu with the same result.Would it be possible to add the
--tags
to thegit describe
command? I could obviously do a PR but I want to make sure I'm not mistaken first.The text was updated successfully, but these errors were encountered: