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

cabal build --enable-build-info doesn't contain options specified via cabal.project files #9927

Open
fendor opened this issue Apr 24, 2024 · 1 comment

Comments

@fendor
Copy link
Collaborator

fendor commented Apr 24, 2024

Describe the bug

The build-info.json file generated by cabal build --enable-build-info does not include ghc-options specified via cabal.project

To Reproduce
Steps to reproduce the behavior:

$ mkdir cabal-bi-bug && cd cabal-bi-bug
$ cabal init -n --lib
$ echo -e "packages: ./\npackage cabal-bi-bug\n  ghc-options: -haddock\n" > cabal.project
$ cabal build --enable-build-info
$ cat dist-newstyle/build/**/build-info.json | jq | grep haddock

Expected behavior

compiler-args field should contain -haddock

System information

  • Operating system
  • cabal 3.10.3.0
@Mikolaj
Copy link
Member

Mikolaj commented May 1, 2024

The failing test case confirms this is a bug. I've assumed no design is involved in fixing this and so I've set the pr-welcome label. If it can be fixed in many way, though, let's discuss here first before opening a PR.

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

No branches or pull requests

2 participants