tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
simongray 2021-05-27T12:01:28.055100Z

I can’t seem to pick up any :extra-deps inside an alias when running

clojure -A:backend -Stree
where :backend is the alias in question. I wonder why? I thought that -A was the option to use for aliases.

alexmiller 2021-05-27T12:02:06.055300Z

should work, can you share deps.edn

simongray 2021-05-27T12:02:49.055700Z

{:paths   ["src" "resources"]
 :deps    {org.clojure/clojure              {:mvn/version "1.10.3"}
           org.clojure/data.json            {:mvn/version "2.3.1"}
           org.clojure/data.csv             {:mvn/version "1.0.0"}
           semantic-csv/semantic-csv        {:mvn/version "0.2.1-alpha1"}
           time-literals/time-literals      {:mvn/version "0.1.5"}

           io.pedestal/pedestal.service     {:mvn/version "0.5.9"}
           io.pedestal/pedestal.route       {:mvn/version "0.5.9"}
           io.pedestal/pedestal.jetty       {:mvn/version "0.5.9"}
           luminus/ring-ttl-session         {:mvn/version "0.3.3"}
           org.slf4j/slf4j-simple           {:mvn/version "1.7.30"}
           hiccup                           {:mvn/version "1.0.5"}

           ;; Using the same version of Jetty as Pedestal, since upgrading will
           ;; create an incompatibility with newer versions of Jetty:
           ;; <https://opennms.discourse.group/t/jetty-with-ssl-throws-error-with-keystores-with-multiple-certificates-are-not-supported/1489>
           org.eclipse.jetty/jetty-servlets {:mvn/version "9.4.35.v20201120"}


           ;kuhumcst/cuphic           {:local/root "/Users/rqf595/Code/cuphic"}
           ;kuhumcst/rescope          {:local/root "/Users/rqf595/Code/rescope"}
           ;kuhumcst/recap            {:local/root "/Users/rqf595/Code/recap"}}
           kuhumcst/cuphic                  {:git/url "<https://github.com/kuhumcst/cuphic.git>"
                                             :sha     "5122b24da9e1e723f4d1496b1acc98bc699d9d38"}
           kuhumcst/rescope                 {:git/url "<https://github.com/kuhumcst/rescope.git>"
                                             :sha     "901879bdfa489a70b26a1e9fdd381475207130ca"}
           kuhumcst/recap                   {:git/url "<https://github.com/kuhumcst/recap.git>"
                                             :sha     "2668835572a5523bc5a9f0f5543dd85ab1c31681"}}

 ;; For now, the backend alias only contains metabase/saml20-clj since it
 ;; brought in a Google Guava dependency that conflicted with shadow-cljs.
 ;; Using a separate alias for backend-only deps solves this.
 :aliases {:backend  {:extra-deps {metabase/saml20-clj {:mvn/version "2.0.0"}}}
           :frontend {:extra-paths ["dev"]
                      :extra-deps  {org.clojure/clojurescript {:mvn/version "1.10.866"}
                                    thheller/shadow-cljs      {:mvn/version "2.14.0"}
                                    reagent                   {:mvn/version "1.0.0"}}}
           :test     {:extra-paths ["test"]}}}

alexmiller 2021-05-27T12:04:37.056100Z

I see it when I use that command

simongray 2021-05-27T12:04:55.056500Z

that’s strange

alexmiller 2021-05-27T12:05:05.056800Z

maybe try adding -Sforce to make sure you don't have something weird in cpcache?

1✅
simongray 2021-05-27T12:05:38.057500Z

That did the trick”!

simongray 2021-05-27T12:05:42.057700Z

thanks Alex

alexmiller 2021-05-27T12:06:29.058300Z

did you copy that file in or do anything that might cause the deps.edn to have an old timestamp?

alexmiller 2021-05-27T12:06:45.058800Z

the script checks timestamp of cached cp vs deps.edn

simongray 2021-05-27T12:07:16.059500Z

nope

simongray 2021-05-27T12:07:51.060200Z

Ordinarily, I use Cursive to fetch deps and so on, but in this case I needed to test stuff on the command line since my build was failing in production

simongray 2021-05-27T12:08:11.060500Z

maybe that has something to do with it

alexmiller 2021-05-27T12:27:25.061Z

probably - I don't think Cursive uses the cpcache so could be put something weird in combination there

cfleming 2021-05-27T21:51:56.061200Z

Right, Cursive doesn’t use the cpcache.