Fork me on GitHub

Are there any plans for b/create-basis when supplied with :aliases to combine any :extra-paths into :paths for you? I mean maybe not literally :paths but an appropriate key.

Alex Miller (Clojure team)16:01:10

not sure I understand the question. those should get added to the classpath

Alex Miller (Clojure team)16:01:34

are you looking for the "effective paths"?

Alex Miller (Clojure team)16:01:42

if so, you can get that with a little bit of effort from the classpath map / classpath keys in the basis

Alex Miller (Clojure team)16:01:48

(->> (b/create-basis
         {:user {:paths ["src"]
                 :aliases {:test {:extra-paths ["test"]}}}
          :aliases [:test]})
    (filter (fn [[p src]] (:path-key src)))
    (map key))
;;=> ("src/main/clojure" "src/main/resources" "src/test/clojure")

Alex Miller (Clojure team)17:01:17

that's not necessarily correct ordering, but the ordering is defined in :classpath-roots key of the basis