File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
main/clojure/clojure/tools/build
test/clojure/clojure/tools/build/tasks Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
===========
3
3
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
4
8
* v0.10.0 3a2c484 on Mar 8, 2024
5
9
* Updated deps to latest tools.deps and Clojure 1.11.2
6
10
* v0.9.6 8e78bcc on Oct 6, 2023
Original file line number Diff line number Diff line change 314
314
:class-dir ::specs/path
315
315
:src-dirs ::specs/paths
316
316
:compile-opts map?
317
- :bindings map?)
317
+ :bindings map?
318
+ :basis ::specs/basis )
318
319
((requiring-resolve 'clojure.tools.build.tasks.compile-clj/compile-clj) params))
319
320
320
321
(defn javac
Original file line number Diff line number Diff line change 3
3
4
4
(s/def ::lib qualified-ident? )
5
5
(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 76
76
(api/compile-clj (assoc compile-params :bindings {#'clojure.core/*assert* false })) ; ; turn off asserts
77
77
(is (= {:exit 0 , :out (str " 100" (System/lineSeparator ))} (invoke ))))))
78
78
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
+
79
87
(comment
80
88
(run-tests )
81
89
)
You can’t perform that action at this time.
0 commit comments