Fork me on GitHub
#tools-build
<
2022-08-30
>
roklenarcic12:08:38

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: nil

roklenarcic12:08:05

I don’t see anyhing special in deps and it’s been untouched since last release build tons of time ago

roklenarcic12:08:22

:aliases {:build {:deps {io.github.seancorfield/build-clj
                          {:git/tag "v0.8.0" :git/sha "9bd8b8a"}}
                   :ns-default build}

Alex Miller (Clojure team)12:08:03

That is a validation error on the structure of your deps.edn, might be in your main :deps, not in the alias

roklenarcic12:08:37

{: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"}}}}}

Alex Miller (Clojure team)12:08:50

Could also be in your .clojure/deps.edn

roklenarcic12:08:04

Because clj -Spath -T:build works

roklenarcic12:08:15

But clj -Tbuild doesn’t

roklenarcic12:08:19

Ah, it’s :build not build

roklenarcic12:08:25

sorry about htat

Alex Miller (Clojure team)12:08:54

But that should be a better error, sorry about that

seancorfield15:08:47

-Tbuild would try to invoke an installed tool called build; -T:build uses the alias :build

Alex Miller (Clojure team)15:08:35

actually, seems like seems like I did improve this error in 1.10.3.1040 so maybe you're on an older version

Alex Miller (Clojure team)15:08:25

on current I get Error building classpath. Unknown tool: build

seancorfield15:08:05

Folks gotta keep their CLIs up-to-date 🙂

seancorfield15:08:49

1.10.3.1040 was nine months ago...