kaocha icon indicating copy to clipboard operation
kaocha copied to clipboard

Warning when printing config

Open dpetran opened this issue 2 years ago • 2 comments

I'm following along in the docs for setting up kaocha with tools.deps and it says:

Try it out! Use bin/kaocha --print-config to see the resulting test configuration.

When I do that I get this warning:

WARNING: Implicit use of clojure.main with options is deprecated, use -M

and then it prints the config.

This is my bin/kaocha file:

#!/usr/bin/env sh
clojure -A:test -m kaocha.runner "$@"

What do I need to change to not get the warning?

dpetran avatar Jan 14 '22 17:01 dpetran

The command should be clojure -M:test -m kaocha.runner "$@"

dpetran avatar Jan 14 '22 18:01 dpetran

Unfortunately the core team introduced some breaking changes, so using -A: here is no longer recommended, even though it works fine, but it does give you that warning. -M is indeed the new way to do it.

If you would like to send a PR to update the docs for this that would be really appreciated!

plexus avatar Jan 14 '22 18:01 plexus

This already got fixed with #288

stelcodes avatar Oct 19 '22 20:10 stelcodes