Skip to content

improve dist/setup-config format mismatch detection #2251

Description

@hvr

@dcoutts asked me to file this:

I was having this weird issues with the devel version of cabal where some cabal invocations would fail with the following rather non-obvious error message

cabal: Prelude.chr: bad argument: 2041223

Even with -v3 this is the very first output you get from cabal. Only strace provided the hint that setup-config was the last file read before that error message was emitted.

(the underlying problem was most likely that cabal had been compiled against an older snapshot of the Cabal lib than the Cabal lib snapshot registered in the pkg db. And those two snapshots probably disagreed on the setup-config schema)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions