-
Notifications
You must be signed in to change notification settings - Fork 698
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 v2-install --ignore-project
crashes when project file is present
#8094
Comments
cabal v2-install --ignore-project
crashes when cabal.project.local
is presentcabal v2-install --ignore-project
crashes when project file is present
sorry i did not make it clear in the comment but that was in the context of a hypothetical fix for the bug and that would be a feature to be added to allow opting out the behaviour that fix would set |
Maybe then the concrete fix would be to remove |
Related issues:
|
I was looking into what it would take to fix #7965 and make the It looks like there are two ideas competing against each other with the I assume looking in the parent directories is what it means by "GlobalConfig" in the I wasn't sure whether to add this comment to this issue or #7965 but this seemed more appropriate because it's being talked about and still has to do with the |
the globalConfig is not a project file in parent directories -- that's still a "project" config, just one found in another directory. The global config referred to in that function is, as I understand it, the |
@gbaz ok, the reason I said that is that it looks like if you run |
That sounds correct to me. |
Reproducer:
This crashes with (current
master
):Same problem with
cabal.project
instead ofcabal.project.local
.Behavior of previous versions of
cabal-install
:From 3.4 it is the same error as today.
What is my interest in
cabal v2-install --ignore-project
?I'd like to develop with
-O0
(viaoptimization: False
in a project file), but deploy to my system with default optimization (-O1
).Originally, I would have expected that
cabal v2-install
ignores the project files by default, because it behaves as if it installs from thesdist
ed tarball, which does (in my case) not contain anycabal.project*
files.But this does not seem to be the case. There is a long discussion of the complex at:
In #7297 (comment) it is suggested to use
--ignore-project
to this end, but it does not work as expected...The text was updated successfully, but these errors were encountered: