Fork me on GitHub
#tools-deps
<
2018-05-11
>
ghadi14:05:16

I'm having trouble configuring an S3 private repo. To debug I've set -Srepro so that mavencentral & clojars are not seen by t.d.a, and I've set :mvn/repos to my own. For some reason I still get the error: cannot fetch the $dep from "central"

ghadi14:05:12

never mind -- it's a bad error message. when all of the configured repos fail, it throws with one of them.

ghadi14:05:48

Two other misc issues: cannot use override-deps to override from a git/sha to a local/root :mvn/repos doesn't work transitively when pointing to a :local/root

Alex Miller (Clojure team)15:05:31

-Srepro does actually include the install deps.edn btw

Alex Miller (Clojure team)15:05:14

re “cannot use override-deps to override from a git/sha to a local/root” - with same lib name? prob worth a ticket if so

ghadi15:05:22

Yes, same lib name

ghadi15:05:25

👌:skin-tone-4:

Alex Miller (Clojure team)15:05:32

re “:mvn/repos doesn’t work transitively when pointing to a :local/root” - I don’t understand what that means

ghadi15:05:21

A => :local/root B => B has different :mvn/repos => C

Alex Miller (Clojure team)15:05:24

ok. that’s related to some of the other local dep issues that are already logged

Alex Miller (Clojure team)15:05:16

@robert-stuttaford re twitter convo… current hack is:

{:deps {com.datomic/datomic.pro {:local/root "/path/to/datomic-pro-whatev.jar"}
        com.datomic/datomic.pro.deps {:local/root "/path/to/dir-with-datomic-pom"}}

Alex Miller (Clojure team)15:05:59

where the first pulls the jar and second treats the directory holding the pom file (which has to be named “pom.xml” as a local project to pick up the transitive deps)

Alex Miller (Clojure team)15:05:32

however, I just landed a commit to make local jar deps use their embedded pom file to handle this without the hack

Alex Miller (Clojure team)15:05:01

will be in the next release

ghadi15:05:38

(I don't think the transitive :mvn/repo thing should be supported, fwiw. Just logging the papercut)

Alex Miller (Clojure team)15:05:11

well then don’t log it :)

Alex Miller (Clojure team)15:05:34

I’m kind of on the fence though - the equivalent will work if you’re using maven deps I think

ghadi15:05:35

I'll file a ticket for the git -> mvn override-dep

ghadi17:05:01

yup, perfect