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
Keep SHA length when upgrading? #113
Comments
Right. #111 (comment) So please look forward to the next release, which will also support short sha! |
@dharrigan I've just cut a new release. Could you try the latest version? |
Hi! Thank you very much,it sort of works, but this is what I observe too: If I have this:
And I do I end up with this:
Which, although correctly getting the latest commit on the repo, is putting in the full sha. -=david=- p.s., I'm happy to pull/build from your main to try out things rather than you cutting a new release each time :-) Just ping me here or on slack :-) |
@dharrigan Thanks for your confirmation! Now I'm using Clojure CLI version 1.10.3.967, and when I use only short sha for some deps, I got the following message.
It's a Clojure CLI's specification. So antq keeps sha length only for deps which has |
Hi, Yes, i see, the wording is a bit confusing
So, if All good :-) -=david=- |
Hi,
Just tried out 1.0.2, to fix the bug with upgrading a dependency when there is a
git/sha
defined. I've noticed that if antq does the upgrade (--upgrade --force
), then the sha that I put in (to get things started),:git/sha "fb11811"
is replaced with the full sha of the upgrade:git/sha "19c1d310235712240177a09475d5b71420aa7ddb"
.I believe, antq should just honour what is considered to be sufficent for a
short sha
, i.e., 7 characters?https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#Short-SHA-1
i.e., if one types in a
git log --abbrev-commit
, the sha output is 7 characters long. In the Clojure libraries I've worked with, 7 characters seems to be the default for the sha in the deps.edn (i.e., https://github.com/seancorfield/build-clj/blob/main/deps.edn).Thank you.
-=david=-
The text was updated successfully, but these errors were encountered: