Closed
Description
I am doing "cabal install" (in a source dir of a project that has a cabal file) This works:
cabal v2-install --lib --package-env=tidal
It creates a file $HOME/.ghc/x86_64-linux-8.6.5/environments/tidal
.
When I run the exact same command a second time, I get
cabal: Could not resolve dependencies:
[__0] trying: base-4.12.0.0/installed-4.1... (user goal)
[__1] next goal: binary (user goal)
[__1] rejecting: binary-0.8.7.0 (constraint from user target requires
==0.8.6.0)
[__1] trying: binary-0.8.6.0/installed-0.8...
[__2] next goal: containers (user goal)
[__2] rejecting: containers-0.6.2.1 (conflict: binary =>
containers==0.6.0.1/installed-0.6...)
[__2] rejecting: containers-0.6.1.1, containers-0.6.0.1/installed-0.6...,
containers-0.6.0.1, containers-0.5.11.0, containers-0.5.10.2,
...
[__2] fail (backjumping, conflict set: binary, containers)
I expect that the second command suceeds (and changes nothing).
There is a similar ticket #6391 [EDIT: repaired the reference] but it's different: the re-install seems to succeed but the resulting env file cannot be used.
System information
- Fedora GNU/Linux x86_64
- cabal-install 3.0.0.0, ghc-8.6.5 (same with 8.8.1, 8.10.1-alpha - for these I add
--allow-newer
)