-
Notifications
You must be signed in to change notification settings - Fork 710
new-build stores are dbs in the ghc-pkg sense, but treating them as such breaks cabal #5125
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
Comments
Also, is there even a sufficient upside to maintaining the ghc-pkg database for stores in the first place? Would just having the package folders each with a "cabal-hash.txt" not be sufficient, without the "package.db" directory? |
@lspitzner the main reason we need to maintain a So the problem here, as you state, is merely that our nix-store assumes more invariants than are encoded in the |
I think we should add a sanity-check to ensure the invariants aren't violated -- not sure if that belongs in |
@gbaz this has nothing to do with hackage-security, as hackage-security doesn't concern itself with the pkg-db store, but only with the package repo index & tarball cache... :-) |
Fair 'nuff. In any case a sanity check would be good, not least because it would force us to pin down exactly what the invariants are :-) |
e.g.
ghc-pkg unregister
s a dependency of a build-toolAlso note that after 1+2,
ghc-pkg check
turns up clean, while from cabal perspective, the store is in an inconsistent state. Well, that depends on the "consistency" definition, but alternatively, the store still is consistent, only the build-plan construction makes false assumptions which would make it a bug there instead.Possible solutions:
ghc-pkg
The text was updated successfully, but these errors were encountered: