Skip to content

User-config builddir option is ignored #8947

@mixphix

Description

@mixphix

Describe the bug
The cabal user-config setting builddir has no effect on the location of the output files. The command line option --builddir= works as expected.

To Reproduce
Steps to reproduce the behavior:

$ cabal --version
cabal-install version 3.10.1.0
compiled using version 3.10.1.0 of the Cabal library

$ cabal user-config diff
+ builddir: /Users/mbrown/.cabal/dist/build

$ cabal build
...

$ ls
...
dist-newstyle/
...

Expected behavior
The artifacts should not have shown up in the project directory, but rather in the directory specified in the config file.

System information

  • Operating system: macOS Ventura
  • ghc-9.2.7

Additional context
Persists after removing the build folder, with quotes around the file path, with environment variables...

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: v2-build systemAffecting v2-build and related commands that use v2-architecture (aka "nix local builds").re: builddirre: config-fileConcerning the cabal configuration file and the `--config-file` optiontype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions