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

sbt-git v2.0.1: version number from "git describe" is not correct #237

Open
kromenak opened this issue Jul 19, 2023 · 0 comments
Open

sbt-git v2.0.1: version number from "git describe" is not correct #237

kromenak opened this issue Jul 19, 2023 · 0 comments

Comments

@kromenak
Copy link

We have a Play application that has been using sbt-git for a pretty long time. We are using this configuration:

ThisBuild / git.baseVersion := "0.0.0"
ThisBuild / git.useGitDescribe := true

With plugin v1.0.0, this has generated the expected version output for years (e.g. 2.4.5-35-gef0caf4-SNAPSHOT or similar).

After updating to v2.0.1, I found that the version number was no longer populated as expected. Instead, I would always get something like this:

0.0.0-a7b866ec1300a9c63a2a27a26938f34fdcdcb391-SNAPSHOT

It appears that the version number itself is not being populated at all, and the full commit identifier is used. It does not follow the format from "git describe" at all.

For the time being, I am instead using v2.0.0, which works as expected. I'm unsure if this is a bug, or if v2.0.1 requires additional configuration?

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

1 participant