Fork me on GitHub
#tools-deps
<
2021-05-27
>
simongray12:05:28

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.

alexmiller12:05:06

should work, can you share deps.edn

simongray12:05:49

{: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:
           ;; 
           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 ""
                                             :sha     "5122b24da9e1e723f4d1496b1acc98bc699d9d38"}
           kuhumcst/rescope                 {:git/url ""
                                             :sha     "901879bdfa489a70b26a1e9fdd381475207130ca"}
           kuhumcst/recap                   {:git/url ""
                                             :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"]}}}

alexmiller12:05:37

I see it when I use that command

simongray12:05:55

that’s strange

alexmiller12:05:05

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

3
simongray12:05:38

That did the trick”!

alexmiller12:05:29

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

alexmiller12:05:45

the script checks timestamp of cached cp vs deps.edn

simongray12:05:51

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

simongray12:05:11

maybe that has something to do with it

alexmiller12:05:25

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

cfleming21:05:56

Right, Cursive doesn’t use the cpcache.