Fork me on GitHub
#tools-build
<
2022-03-29
>
DenisMc15:03:42

Hi, I’m not sure if this question belongs here, but tools-build is my best guess right now. I’m setting up clojure automated deployments using github actions, all working fine. One problem though: when I get an exception in the build, the output is saved in an EDN file on the filesystem (I get messages like Full report at: /var/folders/bh/094hxw3x4bx4msfv9n9jz6580000gn/T/clojure-10505501116317827051.edn at the end of the failed build). The problem I have is that this file is not available to me when the build is run via github actions - I have no easy way to view it. Is there a way to configure the clojure deps build process to print this info to stdout/stderr? Thanks in advance.

flowthing15:03:08

You can do clj -J-Dclojure.main.report=stderr ... to print the exception into stderr instead of a file.

flowthing15:03:02

Or clj --report stderr, but I always have trouble remembering where --report needs to go if I'm passing other command-line options, too.

DenisMc15:03:54

Just what I needed, thanks a lot!

borkdude15:03:34

I wish this were the default when CI=true :)

DenisMc15:03:34

Ya, CI or deploying to Kubernetes, that sort of stuff. Anyhow glad there’s an easy solution.

👍 2