Fork me on GitHub
#tools-deps
<
2020-02-16
>
kwladyka11:02:57

~/L/M/c/s/P/l/pdf-converter  clj -Aoutdated                                                                                                                                                                                                                                                                           

|                Dependency |  Current |   Latest |
|---------------------------+----------+----------|
|       org.clojure/clojure |   1.10.0 |   1.10.1 |
| org.clojure/clojurescript | 1.10.520 | 1.10.597 |


 !  ~/L/M/c/s/P/l/pdf-converter  clj -Aoutdated -u                                                                                                                                                                                                                                                                    
Updating: deps.edn
  org.clojure/clojure {:mvn/version "1.10.0"} -> {:mvn/version "1.10.1"}
  org.clojure/test.check {:mvn/version "0.9.0"} -> {:mvn/version "0.10.0"}
  com.cognitect/test-runner {:sha "028a6d41ac9ac5d5c405dfc38e4da6b4cc1255d5"} -> {:sha "f7ef16dc3b8332b0d77bc0274578ad5270fbfedd"}
 ~/L/M/c/s/P/l/pdf-converter  clj -Aoutdated                                                                                                                                                                                                                                                                             

|                Dependency |  Current |   Latest |
|---------------------------+----------+----------|
| org.clojure/clojurescript | 1.10.520 | 1.10.597 |

 ~/L/M/c/s/P/l/pdf-converter 

kwladyka11:02:12

What is the logic here?

kwladyka11:02:48

{:paths ["resources" "src"]
 :deps {org.clojure/clojure {:mvn/version "1.10.1"}}
 :aliases {:test {:extra-paths ["test"]
                  :extra-deps {org.clojure/test.check {:mvn/version "0.10.0"}
                               me.raynes/fs {:mvn/version "1.4.6"}}}}
           :runner {:extra-deps {com.cognitect/test-runner
                                 {:git/url ""
                                  :sha "f7ef16dc3b8332b0d77bc0274578ad5270fbfedd"}}
                    :main-opts ["-m" "cognitect.test-runner"
                                "-d" "test"]}}
deps.edn

kwladyka11:02:01

it is showing something different to update and update something different

kwladyka11:02:07

and what cljs doing here?

dominicm11:02:53

Maybe the first one is looking at transitive dependencies when it shouldn't be?

kwladyka11:02:41

What do you use for updates? I found there is also vulcan

dominicm11:02:57

I don't use anything :)

borkdude11:02:34

(for maven deps)

seancorfield18:02:43

I would never run a tool that auto-updated my deps. I used Depot for a while but the 2.x version doesn't work with our setup (because it processes deps files directly instead of relying on t.d.a. to process all the aliases and override etc via a non-user deps.edn specified via CLJ_CONFIG).

❤️ 4
seancorfield18:02:34

Like @borkdude I created a script instead -- it runs clojure -Stree and massages the output, then creates a deps.edn with all the :mvn/version deps changed to "RELEASE" and re-run clojure -Stree against that, and then compare the top N levels of those trees.

👍 4
Michaël Salihi10:02:03

This script is available on your Github ?

borkdude10:02:03

I made it based on the idea of Sean

Michaël Salihi10:02:33

@borkdudeNice script, to use and also for learning beautiful Clojure scripting. Babashka rocks! Thank you!

borkdude10:02:12

Thanks 😊

seancorfield17:02:31

@UFBL6R4P3 Our script at work is somewhat proprietary and heavily tied to how our monorepo works (30 subprojects, each with their own deps.edn and with an overall deps.edn that is used instead of the ~/.clojure user-level one, via the CLJ_CONFIG environment variable).

Michaël Salihi18:02:25

@U04V70XH6 I understand. Thx for the information, I don't know CLJ_CONFIG. New thing in my baggage!