Closed
Description
- When executable components (
built-tool-depends
) are put into the store, they are just put there. - However, when
InstallPlan
checks for dependencies, it checks that the dependencies of an executable are also in the store- This is right thing to do, as there might be library with
data-files
for example
- This is right thing to do, as there might be library with
- Yet, there is no way to know, by just looking at the store, whether the executable component has all dependencies (and they are unbroken)
- For libraries, there are
.conf
files inpackage.db
- For libraries, there are
This is important for garbage collection of the store:
- If we look only at
~/.cabal/bin
as the roots - they will retain the executable component
- but the executable component won't retain any of its dependencies
Then, if we clean up the dependencies:
- Executable might stop working if dependencies data files are gone, ... or
- cabal will error out, when checking the integrity of
InstallPlan
Metadata
Metadata
Assignees
Labels
No labels