File tree Expand file tree Collapse file tree
main/clojure/clojure/tools/build/tasks
test/clojure/clojure/tools/build/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changelog
22===========
33
4+ * v0.10.4
5+ * compile-clj - fix ordering of namespaces not included in topo sort
46* v0.10.3 15ead66 on May, 2024
57 * compile-clj - add simple spec for : basis arg
68* v0.10.1 5e3b8f3 on Apr 28, 2024
Original file line number Diff line number Diff line change 6767 (->> graph
6868 dependency/topo-sort
6969 (filter ns-candidates) ; ; only keep stuff in these dirs
70- (concat ns-candidates) ; ; but make sure everything is in there at least once
70+ (#( concat % ns-candidates) ) ; ; but make sure everything is in there at least once
7171 distinct)))
7272
7373(defn- basis-paths
Original file line number Diff line number Diff line change 1212 [clojure.java.io :as jio]
1313 [clojure.string :as str]
1414 [clojure.tools.build.api :as api]
15+ [clojure.tools.build.tasks.compile-clj :as compile-clj]
1516 [clojure.tools.build.test-util :refer :all ]))
1617
18+ (deftest test-topo
19+ ; ; deps: a -> b -> c, d
20+ ; ; expect: c b a (reverse topo sort), then d at the end
21+ (is (= '[c b a d]
22+ (#'compile-clj/nses-in-topo [(jio/file " test-data/nses/src" )]))))
23+
1724(deftest test-compile
1825 (with-test-dir " test-data/p1"
1926 (api/set-project-root! (.getAbsolutePath *test-dir*))
Original file line number Diff line number Diff line change 1+ (ns a
2+ (:require b))
Original file line number Diff line number Diff line change 1+ (ns b
2+ (:require c))
Original file line number Diff line number Diff line change 1+ (ns c )
Original file line number Diff line number Diff line change 1+ (ns d )
You can’t perform that action at this time.
0 commit comments