-
Notifications
You must be signed in to change notification settings - Fork 724
Description
Describe the feature request
I would like to configure Cabal in such a way that cabal build only writes to the project directory.
Additional context
I want to run cabal build as part of coding tools (openai codex, claude code, crush, etc.). For safety, these tools run all commands in a sandbox that prevents writes outside of the project directory. Currently, cabal build fails to run in this environment since it tries to write to ~/.cache/cabal/logs/build.log, which is outside of the project directory.
The documentation mentions the build-summary configuration directive and says that it is not implemented. This seems to be outdated, as the directive does have an effect. Unfortunately, it only adds another path where it tries to write the build summary to, but also still tries to write to the default location. I also tried using the logs-dir directive, but could not observe any effect.
I am running Cabal 3.14.2.0.