tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Jason 2021-03-31T00:16:37.299800Z

thanks for looking that up. much appreciated

alexmiller 2021-03-31T02:07:10.300100Z

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

4
pavlosmelissinos 2021-03-31T12:24:41.306100Z

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

pavlosmelissinos 2021-03-31T12:28:36.306400Z

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

alexmiller 2021-03-31T12:54:48.308Z

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

alexmiller 2021-03-31T12:55:11.308200Z

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

pavlosmelissinos 2021-03-31T12:59:29.308400Z

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

alexmiller 2021-03-31T13:00:03.308600Z

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

👍 1