install --lib
can create inconsistent environments when dependencies are involved
#9582
Labels
install --lib
can create inconsistent environments when dependencies are involved
#9582
Describe the bug
install --lib
can create inconsistent environments when packages are installed one by one (ie. when an environment is modified). This was fixed for the case of explicitly installed packages, but not for dependencies.To Reproduce
Steps to reproduce the behavior:
foo
depends onbar
. Constraints simulate the evolution of the index.Now suppose a function
f
fromfoo
returns/takes a type frombar
. I installbar
so I can interact withf
:Poof, inconsistent environment. The two instances of
bar
don't match.The second command succeeds because bar is not explicitly in the environment.
Expected behavior
One of
cabal install --lib
into own command (cabal env) #6481 (comment)System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: