ardumont/w-import-gen — comment on commit 4ac565f9793d5bc3bca8d5f15281ea39dffca239
File: src/w_import_gen/io/main.clj line 19
By denlab:

It is not the problem I encountered.

The problem is:

* We want to disable midje in prod mode
* We can control that with `*include-midje-checks*`
* The idea was: set it to false in the entry point of the program (`main`)
* Because `main` is always used in prod, it works fine

But it doesn't work:

* In prod mode the program load `main`
* But for `main` to work, it needs to load other modules (`util`, `core`, ...)
* And the loading occurs **BEFORE** executing the code in `main`, and this code contains midje unit tests

I think we need to check code examples, or ask Brian on how to do it.