-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
throw-on-errors of with-eastwood does not work #15
Comments
if you'd like to check out the docs $ boot check/with-eastwood -t
...
== Warnings: 11 (not including reflection warnings) Exceptions thrown: 0
WARN: eastwood found some problems ^^^
...
tolitius.boot-check/with-throw boot_check.clj: 27
clojure.core/ex-info core.clj: 4617
clojure.lang.ExceptionInfo: eastwood checks fail
causes: {:err nil, :warning-count 11, :exception-count 0}
clojure.lang.ExceptionInfo: eastwood checks fail
line: 66 |
Thanks for your reply. I had added the flag. (deftask build []
(comp (check/with-eastwood "-t"))) Below is the CI logs.
Boot Version: 2.7.1 |
your try to run it from command line, you should see the exception. |
Eastwood raised an exception because the project can not be compiled, while boot-check just checked warnings not exceptions, so the exit code of the task is 0 indicating no error. The workaround is simple for this project: adding "aot -a" before linting. |
throw-on-errors of with-eastwood does not work, it make CI pass even with eastwood warnings.
Did a brief investigation, eastwood/check did not return errors.
The usage of boot.pod/with-eval-in seems the cause of problem.
The text was updated successfully, but these errors were encountered: