Olical / depot

Find newer versions of your dependencies in your deps.edn file
https://clojars.org/olical/depot
The Unlicense
258 stars 14 forks source link

Update dependencies #47

Closed dotemacs closed 3 years ago

dotemacs commented 3 years ago

I updated it because I came across an issue where I had

org.clojure/tools.deps.alpha {:mvn/version "0.9.857"}

declared in a project's deps.edn.

I used the setup as per the README in my ~/.clojure/deps.edn:

:aliases {:outdated {:extra-deps {olical/depot {:mvn/version "2.0.1"}}
          :main-opts ["-m" "depot.outdated.main"]}}

and I got an error:

Syntax error (FileNotFoundException) compiling at (depot/outdated/update.clj:1:1).
Could not locate clojure/tools/deps/alpha/reader__init.class, clojure/tools/deps/alpha/reader.clj 
or clojure/tools/deps/alpha/reader.cljc on classpath.

Then collected the info about it and was about to create a new issue when I saw this issue about API change in tools.deps.alpha:

46 and kind of "got distracted" and upgraded the dependencies,

creating this PR.

But really, all I had to do was change the above alias to:

:aliases {:outdated {:replace-deps {olical/depot {:mvn/version "2.0.1"}}
                     :main-opts ["-m" "depot.outdated.main"]}}

NOTE: :replace-deps instead of :extra-deps.

Then I updated more dependencies and fully qualified existing artifacts to suppress warnings.

Olical commented 3 years ago

Oh this is great! Thanks! I didn't see that tools.deps changed the API, I'm guessing it's more than just a name change, I'll take a look.

Olical commented 3 years ago

Repo yak shaving complete, version published to clojars! v2.1.0

Thanks!