deps-new 2025-03-06

I am running the latest Clojure and CLI. I am in an empty directory. I have deps-new installed as a tool. When I try clojure -A:deps -Tnew help/dir I get the help for the clojure CLI, and not deps-new. It used to work. Transcript in thread.

(base) dorab@Dorabs-Mac-mini /tmp % clojure -version
Clojure CLI version 1.12.0.1517
(base) dorab@Dorabs-Mac-mini /tmp % clojure -Ttools list
TOOL         LIB                              TYPE  VERSION
antq         com.github.liquidz/antq          :git  2.11.1269
clj-new      com.github.seancorfield/clj-new  :git  v1.3.415
cljfmt       io.github.weavejester/cljfmt     :git  0.13.0
http-server  io.github.babashka/http-server   :git  v0.1.13
lein2deps    io.github.borkdude/lein2deps     :git  v0.1.1
new          io.github.seancorfield/deps-new  :git  v0.8.0
tools        io.github.clojure/tools.tools    :git  v0.3.4
(base) dorab@Dorabs-Mac-mini /tmp % clojure -A:deps -Tnew help/dir
aliases
find-versions
git-resolve-tags
list
mvn-install
mvn-pom
prep
tree
(base) dorab@Dorabs-Mac-mini /tmp % clojure -Sverbose
version      = 1.12.0.1517
install_dir  = /opt/homebrew/Cellar/clojure/1.12.0.1517
config_dir   = /Users/dorab/.clojure
config_paths = /opt/homebrew/Cellar/clojure/1.12.0.1517/deps.edn /Users/dorab/.clojure/deps.edn deps.edn
cache_dir    = /Users/dorab/.clojure/.cpcache
cp_file      = /Users/dorab/.clojure/.cpcache/2983778365.cp

Clojure 1.12.0
user=> ^D
(base) dorab@Dorabs-Mac-mini /tmp %
Where should I go looking for the issue? Thanks.

That must be a change in a recent CLI or tools.deps version because it used to work just fine. Post this in #tools-deps but I suspect Alex will want you to write it up on Ask for tracking purposes.

Thanks. Will do.

I have a :deps+ alias that only depends on tools.deps.cli and wound that back several versions and it didn't fix it, so I'm assuming it's a change in the CLI (or tools.deps), perhaps around how tools dependencies are handled...?

That was my best guess as well. Since it also seems to happen with other installed tools.

I tried winding tools.deps back quite a way and that doesn't fix it either. Guess I'd need to try it with various CLI versions next.

(I no longer have older versions of the CLI on this machine -- but you probably do with brew so you could explicitly invoke older versions)

Posted in #tools-deps

I seem to only have the latest in the brew Cellar.

You can install any version via brew using clojure@<version> if you want to try a few versions and let Alex know which one broke it.

I will do that. Thanks.