Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-config builddir option is ignored #8947

Closed
mixphix opened this issue May 12, 2023 · 2 comments
Closed

User-config builddir option is ignored #8947

mixphix opened this issue May 12, 2023 · 2 comments
Labels
cabal-install: nix-local-build re: builddir re: config-file Concerning the cabal configuration file and the `--config-file` option type: bug

Comments

@mixphix
Copy link
Contributor

mixphix commented May 12, 2023

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...

@mixphix
Copy link
Contributor Author

mixphix commented May 12, 2023

I was trying to find a way to (globally) prevent Cabal's build artifacts from syncing to iCloud, by appending .nosync to its output folder. The workaround is to make a shell function that passes this option in every time — yikes!

@ulysses4ever
Copy link
Collaborator

Thank you for the report! This is not supported, and it's not easy to support as discussed in #5271. There should be a warning, of course, and that's reported (although for project files) in #7941.

@ulysses4ever ulysses4ever added cabal-install: nix-local-build re: config-file Concerning the cabal configuration file and the `--config-file` option re: builddir type: bug labels May 13, 2023
@mixphix mixphix closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: nix-local-build re: builddir re: config-file Concerning the cabal configuration file and the `--config-file` option type: bug
Projects
None yet
Development

No branches or pull requests

2 participants