Fork me on GitHub
#tools-deps
<
2020-09-12
>
hugod02:09:36

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

seancorfield03:09:18

@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).

seancorfield03:09:41

Do you perhaps have your own :deps alias, shadowing the system installed one?

hugod10:09:28

That was it thanks. Should have thought of that. Might be nice to have a warning if you define your own :deps alias.

seancorfield03:09:48

(! 993)-> clojure -Sdescribe
{:version "1.10.1.681"
 :config-files ["/usr/local/Cellar/[email protected]/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/[email protected]/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 FYI

sogaiu03:09:28

here i get:

$ clj -X:deps tree
Cloning: 
Checking out:  at e160f184f051f120014244679831a9bccb37c9de
Unqualified function can't be resolved: tree

$ clj -h | grep 681
Version: 1.10.1.681

sogaiu03:09:45

looks like i've got the following in my ~/.clojure/deps.edn:

:deps
   {
    :extra-deps {org.clojure/tools.deps.alpha
                 {:git/url ""
                  :sha "e160f184f051f120014244679831a9bccb37c9de"}}
   }

sogaiu03:09:42

...and with -Srepro i don't get that message

seancorfield03:09:13

Yup, bad idea. You should only have that under an alias.

seancorfield03:09:42

You're essentially breaking the :deps alias in the system installed deps.edn...

dominicm05:09:28

Maybe the system deps should have a namespace?

seancorfield06:09:50

Or maybe system aliases should be "reserved" so you can't overwrite them?

sogaiu06:09:26

@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

seancorfield06:09:07

Yeah, I changed that when I realized that it conflicted with the system one 😞

seancorfield06:09:06

(and that's an outdated branch -- the latest versions of add-lib require builds from source because they include Java code)

sogaiu06:09:12

ah thanks!

seancorfield06:09:40

I update that file a lot -- so it's a good idea to keep git pulling it regularly 🙂

👍 3
seancorfield06:09:00

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

seancorfield06:09:15

Both -M:new and -X:new will work.

seancorfield06:09:00

clojure -M:new lib myname/myproject or clojure -X:new :name myname/myproject (since :template is defaulted to lib).