haskell / haskell/cabal

Useless and harmful advice to reconfigure given when saved package config cannot be read

Open
#8,409 1 comment 0 reactions 0 assignees View on GitHub
Cabal: cmd/build Cabal: cmd/configure
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I sometimes see the advice given here:
https://github.com/haskell/cabal/blob/a97e1f13bdb28a3f761d55845f14a9072bee17ca/Cabal/src/Distribution/Simple/Configure.hs#L156-L158
Running `cabal configure` as advised has never solved the problem, but instead on top destroyed my `cabal.project.local` (#8408). (Nothing but removing the build folder has helped me so far.)

I _never_ run `cabal configure` in production (just `cabal build` directly), so why should this help? Rather, if `cabal` encounters some corrupt saved configuration upon `cabal build` it should execute `cabal build` as if there were no saved configuration lying around.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.