Skip to content

cabal new-configure dumps redundant settings into cabal.project.local file #5139

Closed

Description

@hvr

Running cabal new-configure w/o any flags currently writes a cabal.project.local containing the following entries (rather than being empty):

solver: modular
doc-index-file: $datadir/doc/$arch-$os-$compiler/index.html
max-backjumps: 2000
reorder-goals: False
count-conflicts: True
independent-goals: False
strong-flags: False
allow-boot-library-installs: False
remote-build-reporting: none
report-planning-failure: False
per-component: True
one-shot: False
keep-going: False
offline: False
documentation: False
haddock-keep-temp-files: False
haddock-hoogle: False
haddock-html: False
haddock-executables: False
haddock-tests: False
haddock-benchmarks: False
haddock-foreign-libraries: False
haddock-internal: False
haddock-hyperlink-source: False

This is a regression caused by the default flag injection into CLI flags, confusing cabal new-configure into thinking that the flags above were set explicitly via the CLI.

This will be resolved by #4886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions