Skip to content

Commit

Permalink
find-all-versions now returns coords for every procurer
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodCTaylor authored and puredanger committed Nov 21, 2024
1 parent b26222c commit 55b39ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/clojure/clojure/tools/deps/extensions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@
(throw-bad-coord lib coord))

(defn find-all-versions
"Find versions across all registered procurer types and return first that finds some.
Returns coll of coordinates for this lib (based on lib and partial coordinate)."
"Find versions across all registered procurer types.
Returns coll of coordinates for this lib (based on lib and partial coordinate).
For each procurer type, coordinates are returned in chronological order."
[lib coord config]
(some #(find-versions lib coord % config) (procurer-types)))
(mapcat #(find-versions lib coord % config) (procurer-types)))

;; Methods switching on manifest type

Expand Down

0 comments on commit 55b39ac

Please sign in to comment.