With cli 673, and 681
clojure -Stree
=> Option changed, use: clj -X:deps tree
clojure -X:deps tree
=> Unqualified function can't be resolved: tree
@hugod It works fine for me (aside from showing tools.deps.alpha
as a dependency and everything it depends on -- which was the problem with -X:deps mvn-pom
in the last release).
Do you perhaps have your own :deps
alias, shadowing the system installed one?
That was it thanks. Should have thought of that. Might be nice to have a warning if you define your own :deps
alias.
(! 993)-> clojure -Sdescribe
{:version "1.10.1.681"
:config-files ["/usr/local/Cellar/clojure@1.10.1.681/1.10.1.681/deps.edn" "/Users/sean/.clojure/deps.edn" "deps.edn" ]
:config-user "/Users/sean/.clojure/deps.edn"
:config-project "deps.edn"
:install-dir "/usr/local/Cellar/clojure@1.10.1.681/1.10.1.681"
:config-dir "/Users/sean/.clojure"
:cache-dir ".cpcache"
:force false
:repro false
:main-aliases ""
:repl-aliases ""}
(! 994)-> clojure -X:deps tree
org.clojure/clojure 1.10.1
org.clojure/core.specs.alpha 0.2.44
org.clojure/spec.alpha 0.2.176
org.clojure/tools.deps.alpha 0.9.795 <---------- none of this should be here!
javax.inject/javax.inject 1
com.cognitect.aws/api 0.8.408
org.clojure/data.json 0.2.7
commons-codec/commons-codec 1.13
com.cognitect/http-client 0.1.101
org.eclipse.jetty/jetty-http 9.4.15.v20190215
org.eclipse.jetty/jetty-io 9.4.15.v20190215
^ @alexmiller FYIhere i get:
$ clj -X:deps tree
Cloning: <https://github.com/clojure/tools.deps.alpha>
Checking out: <https://github.com/clojure/tools.deps.alpha> at e160f184f051f120014244679831a9bccb37c9de
Unqualified function can't be resolved: tree
$ clj -h | grep 681
Version: 1.10.1.681
looks like i've got the following in my ~/.clojure/deps.edn:
:deps
{
:extra-deps {org.clojure/tools.deps.alpha
{:git/url "<https://github.com/clojure/tools.deps.alpha>"
:sha "e160f184f051f120014244679831a9bccb37c9de"}}
}
...and with -Srepro
i don't get that message
Yup, bad idea. You should only have that under an alias.
You're essentially breaking the :deps
alias in the system installed deps.edn
...
@sogaiu ^
Maybe the system deps should have a namespace?
Or maybe system aliases should be "reserved" so you can't overwrite them?
@seancorfield yes, thanks. i think it was a left-over from here: https://github.com/seancorfield/dot-clojure/blob/d4aba12ec24834200b70ee0c06a30fb0538bddc0/deps.edn#L167 - my bad for not keeping up-to-date
Yeah, I changed that when I realized that it conflicted with the system one 😞
Now it's this: https://github.com/seancorfield/dot-clojure/blob/develop/deps.edn#L164
(and that's an outdated branch -- the latest versions of add-lib require builds from source because they include Java code)
ah thanks!
I update that file a lot -- so it's a good idea to keep git pull
ing it regularly 🙂
I'm adding -X
compatible stuff now as well, for folks on the latest prerelease of the CLI: https://github.com/seancorfield/dot-clojure/blob/develop/deps.edn#L15-L18
Both -M:new
and -X:new
will work.
clojure -M:new lib myname/myproject
or clojure -X:new :name myname/myproject
(since :template
is defaulted to lib
).