tools-build

2022-01-21T16:35:47.001800Z

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) 2022-01-21T16:50:10.002400Z

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

Alex Miller (Clojure team) 2022-01-21T16:50:34.002900Z

are you looking for the "effective paths"?

Alex Miller (Clojure team) 2022-01-21T16:51:42.003900Z

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) 2022-01-21T16:59:48.004300Z

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

Alex Miller (Clojure team) 2022-01-21T17:01:17.005200Z

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