Olical / depot

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

Regression: files without a top-level :deps key cannot be processed #26

Closed lverns closed 4 years ago

lverns commented 4 years ago

Thanks to @seancorfield for catching this.

Due to my changes in #25, files without a :deps key at the top-level will cause an exception to be thrown.

Example:

$ cat deps.edn
{:aliases {:test {:extra-deps {midje {:mvn/version "1.9.8"}}
                  :override-deps {com.amazonaws/aws-java-sdk-elasticache {:mvn/version "1.11.60"}}}}}

$ clojure -Sdeps '{:deps {olical/depot {:git/url "https://github.com/Olical/depot.git" :sha "7352485217f2ee3f32874968a4d1894ad82a600c"}}}' -m depot.outdated.main
Execution error (AssertionError) at depot.zip/zget (zip.clj:57).
Assert failed: (rzip/map? loc)

Full report at:
/tmp/clojure-5772488481305835046.edn