Fork me on GitHub
#tools-deps
<
2021-03-31
>
Jason00:03:37

thanks for looking that up. much appreciated

Alex Miller (Clojure team)02:03:10

oh, I didn't look it up, I wrote it :)

clojure-spin 12
pavlosmelissinos12:03:41

I just tried using :replace-deps without specifying org.clojure/clojure and it seems like clj -A:some-alias tries to bring in the top-level deps as well (including the private git repo). Is this behaviour intended/known?

:deps    {org.clojure/clojure      {:mvn/version "1.10.1"}
          some-private-github-repo {:git/url <git url>
                                    :sha     <some-sha>}
:aliases {:some-alias {:replace-deps {org.clojure/tools.gitlibs {:mvn/version "0.2.64"}}
I don't have an clean repro case but I can try to make one if necessary. This is from a CI job that uses the circleci/clojure:openjdk-11-tools-deps image. Not sure which version of tools-deps that is but it shouldn't be too far behind...

pavlosmelissinos12:03:36

The thing about the private git repo is not irrelevant; I might have a follow up question about that...

Alex Miller (Clojure team)12:03:48

would be helpful to know the clj version (either with clj -Sdescribe or clj --version if it's new enough

Alex Miller (Clojure team)12:03:11

if you happen to be on a version before :replace-deps existed, then what you describe would make sense

pavlosmelissinos12:03:29

I think it's >1.10.2 but I'll confirm in a bit and get back to you, thanks 🙂

Alex Miller (Clojure team)13:03:03

assuming it's new enough to have :replace-deps, don't know, would need a repro

👍 3