As discussed in #6203 it can be beneficial to workflows (e.g. large projects with many local packages) to run the solver rarely and to receive an error in preference to cache invalidation.
It would be good if this could be put behind a flag, e.g. --no-run-solver with the ability to go in cabal.project.local, and a --run-solver overriding.
Workflow: a developer could run the solver when they rebase their branch, then forgetting some trivial flag like -O0 or --enable-tests will cause an error rather than a (time costly) cache invalidation that requires another invalidation to fix.
As discussed in #6203 it can be beneficial to workflows (e.g. large projects with many local packages) to run the solver rarely and to receive an error in preference to cache invalidation.
It would be good if this could be put behind a flag, e.g.
--no-run-solverwith the ability to go incabal.project.local, and a--run-solveroverriding.Workflow: a developer could run the solver when they rebase their branch, then forgetting some trivial flag like
-O0or--enable-testswill cause an error rather than a (time costly) cache invalidation that requires another invalidation to fix.