Fork me on GitHub
#tools-deps
<
2021-09-23
>
borkdude18:09:17

Is this way of checking out the same git lib with multiple roots supported? It works, but I wonder if I can rely on this.

{:deps
 {cheshire/cheshire {:mvn/version "5.10.0"}
  graal-config/cheshire {:git/url ""
                         :git/sha "b06e33694d2c878169958f7317ea01d9c0353ab4"
                         :deps/root "config/cheshire/cheshire"}
  graal-config/nippy {:git/url ""
                      :git/sha "b06e33694d2c878169958f7317ea01d9c0353ab4"
                      :deps/root "config/com.taoensso/nippy"}}}
The use case is having one repository with lots of native-image configurations that people can include on their classpath

borkdude18:09:01

as long as you use the same SHA it works, but in other cases it might not?

Alex Miller (Clojure team)18:09:40

looks ok to me, not sure why same sha matters?

borkdude18:09:05

can you use a different SHA for the same git/url?

borkdude18:09:16

if that also works, then this is :thumbsup:

borkdude18:09:50

I wasn't sure how they are checked out and if there could be conflicts

Alex Miller (Clojure team)18:09:17

now if you get into wanting to compare the same lib using different url/sha/whatever, things get murkier :)

borkdude18:09:57

this lib won't have any other deps so I don't think that will be a problem and people should really only include this dep in their final builds

Alex Miller (Clojure team)18:09:02

Like graal-config/nippy exists in the dep expansion at two different shas etc

borkdude18:09:22

as in: libs should not depend on this lib

borkdude18:09:29

but only final app users should

Alex Miller (Clojure team)18:09:39

yeah, users always do what you tell them ;)

😁 7
😂 1