-
Notifications
You must be signed in to change notification settings - Fork 47
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
Project load failure on git describe abbrev failure #117
Comments
Just got hit by this one as well. (Thanks for writing down what to do about it or I would have spent the day 🙇 ) |
(Seeing this in sbt-synver 4.0.0 and 4.1.1) Just hit this one too. You can see the abbreviated git hash (
So running sbt produces this stack trace:
@ignasi35 thanks for figuring it out. Saved me a lot of time... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sbt-dynver
usesgit describe --abbrev=8
and the pattern matches on exactly8
characters for the abbreviated SHA-1.git describe --abbrev=<n>
produces a shortened representation of the SHA-1 of at leastn
.sbt-dynver
causes aMatchError
whenever the abbreviated SHA-1 is longer than8
:which can be reproduced using this commit (NOTE: the link is now broken because I rebased but I kept the commit reproducing the error here).
The workaround is to amend the commit to get a different SHA-1 so the hash collision resolves.
The text was updated successfully, but these errors were encountered: