I’ve restarted working on a project that has worked for me before and the first command I’ve ran had this enigmatic message:
roklenarcic@Roks-MacBook-Pro paginator % clj -Tbuild test
Error building classpath. Bad coordinate for library , expected map: nilI don’t see anyhing special in deps and it’s been untouched since last release build tons of time ago
:aliases {:build {:deps {io.github.seancorfield/build-clj
{:git/tag "v0.8.0" :git/sha "9bd8b8a"}}
:ns-default build}That is a validation error on the structure of your deps.edn, might be in your main :deps, not in the alias
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/core.async {:mvn/version "1.3.618"}}
:aliases {:build {:deps {io.github.seancorfield/build-clj
{:git/tag "v0.8.3" :git/sha "7ac1f8dee188894cee4199aaf2fbe7c6708a8680"}}
:ns-default build}
:test {:extra-paths ["test"]
:extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
io.github.cognitect-labs/test-runner
{:git/tag "v0.5.0" :git/sha "48c3c67"}
clj-http/clj-http {:mvn/version "3.10.1"}
cheshire/cheshire {:mvn/version "5.10.0"}}}}}Could also be in your .clojure/deps.edn
Because clj -Spath -T:build works
But clj -Tbuild doesn’t
Ah, it’s :build not build
sorry about htat
Yeah
But that should be a better error, sorry about that
-Tbuild would try to invoke an installed tool called build; -T:build uses the alias :build
actually, seems like seems like I did improve this error in 1.10.3.1040 so maybe you're on an older version
on current I get Error building classpath. Unknown tool: build
Folks gotta keep their CLIs up-to-date 🙂
1.10.3.1040 was nine months ago...