-
Notifications
You must be signed in to change notification settings - Fork 701
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-file appears not to work #7225
Comments
I don't think that's the intended behavior. Although there's virtually zero documentation of this flag, and it seems to have bitrotten quite a bit (e.g. it's no longer recognized by either I suggest we close it as won't fix. There may be a feature request hiding under this ticket, which is: provide another option, e.g. There may be separate issues for a) |
I think there are other tickets (and PRs?) about using env variables for that, about changing working directory, etc., and generally about making it saner. But I think it's worth keeping this ticket, given the few serious problems with the option at hand that should be fixed until the option is replaced or in case is stays. |
Using a tool like
I get the feeling that |
See #8395. |
Describe the bug
The
--cabal-file
option does not appear to be working as I expect, leading to strange behavior when cabal is invoked at the root of a GHC checkout. (NB: this is on Windows)To Reproduce
Steps to reproduce the behavior:
Pre-requisite: have a GHC checkout at C:\ghc (I'm on branch ghc-9.0 if it matters). From within a MinGW64 shell, cd into the checkout and create dummy.cabal as below.
These commands also do not work:
The above merely builds HUnit, even if dummy.cabal is changed to depend on e.g. http-types instead.
Works as expected (builds the dummy package)
Expected behavior
If
--cabal-file
is specified, it should use that and not look at other files in CWD.System information
Additional context
My cabal, GHC, mingw etc. are coming from Chocolatey.
The text was updated successfully, but these errors were encountered: