Fork me on GitHub
#tools-deps
<
2021-04-14
>
otfrom12:04:22

👋 Is there a way to point at the head of master/main/other branch on http://github.com in deps.edn? Sort of like pointing at a snapshot in a maven repo, or :mvn/version "LATEST"?

delaguardo13:04:38

you can add :tag to coordinates map and then use -X:deps git-resolve-tags to update :sha

delaguardo13:04:30

{:git/url "git://..."
 :sha "some-sha"
 :tag "master"}

otfrom15:04:40

that sounds funky. thx!

seancorfield17:04:49

The :sha value can be anywhere on any branch — it doesn’t have to be the head of a branch or even a specific tag.

otfrom17:04:05

@U04V70XH6 and that is great for repeatability. Just a bit frustrating when tracking fast moving changes in a library being developed between multiple team members. It isn't too much trouble and we can always point at it locally.

seancorfield18:04:45

You can also use tools.gitlibs programmatically to find the current SHA for a given tag/branch. I have an example in my dot-clojure deps.edn file.

otfrom18:04:42

slash me goes to look at your deps.edn again

ghadi12:04:14

no. In fact I think support of LATEST in mvn is unintentional. deps.edn wants values (SHAs/versions), not references (branches / LATEST)

seancorfield17:04:49

The :sha value can be anywhere on any branch — it doesn’t have to be the head of a branch or even a specific tag.