tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2021-04-14T12:45:22.001900Z

👋 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"?

ghadi 2021-04-14T12:47:14.003Z

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

2021-04-14T12:49:10.003400Z

🆒 thx

2021-04-14T13:18:38.004200Z

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

2021-04-14T13:19:30.004400Z

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

2021-04-14T15:11:40.006300Z

that sounds funky. thx!

2021-04-14T17:58:05.006800Z

@seancorfield 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.

seancorfield 2021-04-14T18:00:45.007Z

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.

2021-04-14T18:01:42.007200Z

slash me goes to look at your deps.edn again