File tree Expand file tree Collapse file tree
main/clojure/clojure/tools/build
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+ * next
5+ * compile-clj - add simple spec for : basis arg
6+ * v0.10.1 on Apr 28, 2024
7+ * compile-clj - add required check on : basis arg
48* v0.10.0 3a2c484 on Mar 8, 2024
59 * Updated deps to latest tools.deps and Clojure 1.11.2
610* v0.9.6 8e78bcc on Oct 6, 2023
Original file line number Diff line number Diff line change 314314 :class-dir ::specs/path
315315 :src-dirs ::specs/paths
316316 :compile-opts map?
317- :bindings map?)
317+ :bindings map?
318+ :basis ::specs/basis )
318319 ((requiring-resolve 'clojure.tools.build.tasks.compile-clj/compile-clj) params))
319320
320321(defn javac
Original file line number Diff line number Diff line change 33
44(s/def ::lib qualified-ident? )
55(s/def ::path string? )
6- (s/def ::paths (s/coll-of string?))
6+ (s/def ::paths (s/coll-of string?))
7+
8+ ; ; there are better specs in clojure.tools.deps.specs, but no basis spec yet
9+ ; ; just doing a simple check here
10+ (s/def ::basis (s/nilable map?))
Original file line number Diff line number Diff line change 7676 (api/compile-clj (assoc compile-params :bindings {#'clojure.core/*assert* false })) ; ; turn off asserts
7777 (is (= {:exit 0 , :out (str " 100" (System/lineSeparator ))} (invoke ))))))
7878
79+ (deftest test-accidental-basis-delay
80+ (with-test-dir " test-data/p1"
81+ (api/set-project-root! (.getAbsolutePath *test-dir*))
82+ (is (thrown? clojure.lang.ExceptionInfo
83+ (api/compile-clj {:class-dir " target/classes"
84+ :src-dirs [" src" ]
85+ :basis (delay (api/create-basis nil ))})))))
86+
7987(comment
8088 (run-tests )
8189 )
You can’t perform that action at this time.
0 commit comments