-
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
[RFC] Negative specification of cabal.project fields affecting package resolution #6249
Comments
Duncan suggested we use conditional inclusion in cabal project files instead. That would be indeed, strictly more expressive. We could reuse the existing language for conditionals. |
Note that conditional inclusion is not that simple, and needs proper specification (perfectly of all
|
Maybe we should reopen this, to keep the discussion alive -- after all, the underlying problem has not been resolved. |
related issue: #5444 |
Like @jgbi above, I'm trying to get nix-shell working with haskell.nix. My project builds just fine through nix-build, but running I modified cabal to print exactly what dependency is missing, which, in my case, looks like this When I Any suggestions? |
IMO the proposed fix is beating around the bush, what we really need to do is make clear the builds in the package database correspond with the source code they came from. So rather than tricking cabal-install into blindly accepting pre-built packages, it should knowingly accept them, fully aware they are not the usual Hackage ones. With the "nix-style builds" cabal does, we shouldn't need any new metadata. Rather, we should just make sure the various hashes that exist already reflect this information. |
@Fuuzetsu mentions something similar in #5444 (comment). I guess the situation has improved, but not enough? |
In certain scenarios, where:
We might want to:
cabal.project.local
Hence, I propose that we add two new directives to cabal project files:
ignore-source-repositories
, that would have the effect of cancelling all effects ofsource-repository-package
declarationsignore-constraints
, to cancel all effects ofconstraints
declarations.cc @dcoutts
The text was updated successfully, but these errors were encountered: