From 55b39acfde1721601f3df20403e0ad7b578f97f0 Mon Sep 17 00:00:00 2001 From: JarrodCTaylor Date: Wed, 13 Nov 2024 12:19:08 -0600 Subject: [PATCH] find-all-versions now returns coords for every procurer --- src/main/clojure/clojure/tools/deps/extensions.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/clojure/clojure/tools/deps/extensions.clj b/src/main/clojure/clojure/tools/deps/extensions.clj index 0c9cf5b0..99bc6187 100644 --- a/src/main/clojure/clojure/tools/deps/extensions.clj +++ b/src/main/clojure/clojure/tools/deps/extensions.clj @@ -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