File tree 4 files changed +6
-5
lines changed
main/clojure/clojure/tools/deps/script
test/clojure/clojure/tools/deps/script
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Changelog
3
3
4
4
* Also see [ Tools and installer changelog] ( https://github.com/clojure/brew-install/blob/1.12.0/CHANGELOG.md ) *
5
5
6
+ * next on Mar 5, 2025
7
+ * Better error on missing -Sdeps file
6
8
* 0.22.1503 on Mar 5, 2025
7
9
* Error on missing -Sdeps file
8
10
* 0.22.1497 on Mar 5, 2025
Original file line number Diff line number Diff line change 84
84
skip-cp threads trace tree] :as _opts}]
85
85
(when (and main-aliases exec-aliases)
86
86
(throw (ex-info " -M and -X cannot be used at the same time" {})))
87
+ (when (and (string? config-data) (not (.exists (jio/file config-data))))
88
+ (throw (ex-info (str " Extra deps file not found: " config-data) {})))
87
89
(let [combined-exec-aliases (concat main-aliases exec-aliases repl-aliases tool-aliases)
88
90
args (cond-> nil
89
91
threads (assoc :threads (Long/parseLong threads))
Original file line number Diff line number Diff line change 43
43
(cond
44
44
(s/blank? s) (throw (ex-info (str " -Sdeps must be non-blank" ) {}))
45
45
(s/starts-with? (s/trim s) " {" ) (edn/read-string {:default tagged-literal} s)
46
- :else (if (.exists (jio/file s))
47
- s
48
- (throw (ex-info (str " Extra deps file not found: " s) {}))))))
46
+ :else s)))
Original file line number Diff line number Diff line change 5
5
6
6
(deftest test-parse-config
7
7
(is (= {:paths [" x" ]} (parse/parse-config " {:paths [\" x\" ]}" )))
8
- (is (= " deps.edn" (parse/parse-config " deps.edn" )))
9
- (is (thrown? clojure.lang.ExceptionInfo (parse/parse-config " BOGUS" ))))
8
+ (is (= " deps.edn" (parse/parse-config " deps.edn" ))))
You can’t perform that action at this time.
0 commit comments