Skip to content

Commit

Permalink
Defer Clojure CLI version warning to REPL startup
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed Apr 15, 2023
1 parent 21eb926 commit 0556e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval/deps_try.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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"))))))

0 comments on commit 0556e81

Please sign in to comment.