leiningen

fjsousa 2023-09-07T08:20:16.778009Z

Hey everyone. Apparently if leiningen fails running a task with-profile, it just logs a "suppressed error" message, because *exit-process*?** is bind to false https://github.com/technomancy/leiningen/blob/24fb93936133bd7fc30c393c127e9e69bb5f2392/src/leiningen/with_profile.clj#L51. I'm running lein uberjar with a :prep-task that builds the frontend. If there's an error during the build, lein uberjar proceeds and I want it to exit instead.

vemv 2023-09-11T19:28:55.354209Z

Note that there's a failure counter, so the build will be failed sooner or later: https://github.com/technomancy/leiningen/blob/24fb93936133bd7fc30c393c127e9e69bb5f2392/src/leiningen/with_profile.clj#L88-L89 I don't know the rationale for this behavior. So, let's say uberjar was run, lein will still exit with a non-zero code. So e.g. a deploy script can know not to proceed.

👍 1
fjsousa 2023-09-11T19:45:11.201759Z

makes tracking what failed harder. At first I missed that it was a frontend build failure

👍 1