Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

It would be useful for ci, etc, to be able to run with this set from deps.edn or directly on the command line.

Similar to:

https://ask.clojure.org/index.php/3787/theres-enable-warn-reflection-from-command-running-clojure

1 Answer

0 votes
by

If nothing else, you can add -e (set! *unchecked-math* :warn-on-boxed) to your command line clj invocation, it will execute this before running your repl (via -r) or main ns (via -m).

$ clj -e '(set! *unchecked-math* :warn-on-boxed)' -r
:warn-on-boxed
(ins)user=> *unchecked-math*
:warn-on-boxed
by
Though this of course uses clojure.main, I now wonder if I misunderstand the original question. Is this about using java and a fat jar to run a repl with the clj tool? perhaps my answer is only partial because you mention deps.edn
...