-
Notifications
You must be signed in to change notification settings - Fork 710
new-build runs into internal error after deleting from store #5290
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
I think that -like in nixos- you aren't supposed to touch the store. Well, unless you manually track and delete/unregister every reverse dependency. #3333 Will help with this |
Then what is the recommended method to remove a package from the store ? |
Uh... the simplest way is probably to nuke the entire store. But why would you want to do that, except for disk space problems (hence #3333)? The store is immutable and recompiling a package will result in the exact same files xor a different path. |
I wanted to do that because of a special need. I ran into trouble building library |
You could do something like |
Closing in favour of #3333. |
I was playing with the new-build command. I managed to build with it a project. This built a dependency [
zlib
] into~/.cabal/store/ghc-8.2.2
. Then i deleted this newly createdzlib
folder from the store. Then rancabal new-build
again on my project and got the following output :When i put the deleted package folder back into
~/.cabal/store/ghc-8.2.2
thencabal new-build
responded withUp to date
again.My operating system is NixOS 18.03.132083.06c576b0525 (Impala)
The text was updated successfully, but these errors were encountered: