From 0556e81724aeef06ed4a92da29e8fb49e554f0ca Mon Sep 17 00:00:00 2001 From: Gert Goet Date: Sat, 15 Apr 2023 15:27:40 +0200 Subject: [PATCH] Defer Clojure CLI version warning to REPL startup --- src/eval/deps_try.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eval/deps_try.clj b/src/eval/deps_try.clj index bfaabde..c2229c0 100644 --- a/src/eval/deps_try.clj +++ b/src/eval/deps_try.clj @@ -100,7 +100,6 @@ user=> :deps/try dev.weavejester/medley (warn (str "Adding libraries to this REPL-session via ':deps/try some/lib' won't work as it requires Clojure CLI version >= " minimum " (current: " version ").")))) (defn -main [& args] - (warn-unless-minimum-clojure-cli-version "1.11.1.1273" (clojure-cli-version)) (if (print-version? args) (print-version) (if (or (print-usage? args) (invalid-args? args)) @@ -113,6 +112,7 @@ user=> :deps/try dev.weavejester/medley default-cp (deps->cp tmp '{org.clojure/clojure {:mvn/version "1.12.0-alpha2"}}) requested-cp (deps->cp tmp requested-deps) classpath (str default-cp fs/path-separator init-cp fs/path-separator requested-cp)] + (warn-unless-minimum-clojure-cli-version "1.11.1.1273" (clojure-cli-version)) (p/exec "java" "-classpath" classpath (str "-Dclojure.basis=" basis-file) "clojure.main" "-m" "eval.deps-try.try"))))))