I'm trying clojure -X:deps aliases but getting this error
clojure -X:deps aliases
Namespace clojure.tools.cli.api loaded but function not found: aliases
What am I doing wrong?
I noticed the namespace is somewhat different from what I found on github: https://github.com/clojure/tools.deps.cli/blob/main/src/main/clojure/clojure/tools/deps/cli/api.cljCommands like tree and list work, though.
I found those commands here: https://clojure.org/reference/deps_and_cli#_other_programs
probably an older version of clojure?
This is what I've got
which clj
/usr/local/bin/clj
ll /usr/local/bin/clj
lrwxr-xr-x 1 jumar admin 37B May 19 2022 /usr/local/bin/clj -> ../Cellar/clojure/1.11.1.1113/bin/cljIf I do brew upgrade
✗ brew upgrade clojure
Warning: clojure/tools/clojure 1.11.1.1113 already installedwas added in 1.11.1.1119
current version is 1.11.1.1347
Ok, I thought I'd been using the latest version until today.
I don't know why brew upgrade clojure doesn't work so I did this:
brew install clojure/tools/clojure
Error: clojure 1.11.1.1113 is already installed
To install 1.11.1.1347, first run:
brew unlink clojure
brew unlink clojure
Unlinking /usr/local/Cellar/clojure/1.11.1.1113... 4 symlinks removed.
brew install clojure
...
clj --version
Clojure CLI version 1.11.1.1347
Now the aliases command works.you should be using the official Clojure tap with brew upgrade clojure/tools/clojure (but we push the same versions to homebrew-core, so what you were doing should work too)