You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On NixOS, running cabal build tries to resolve a mysterious dependency (user goal) from a previous project.
To Reproduce
(with probably a local state somewhere : not ~/.{ghc,cabal,ghci}
mkdir new-project
cd new-project
cabal init
cabal build
I get
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: B-0.0.0 (user goal)
[__1] unknown package: p1 (dependency of B)
[__1] fail (backjumping, conflict set: B, p1)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: B, p1
Uh oh!
There was an error while loading. Please reload this page.
On NixOS, running
cabal build
tries to resolve a mysterious dependency (user goal
) from a previous project.To Reproduce
(with probably a local state somewhere : not ~/.{ghc,cabal,ghci}
I get
B and p1 are previous package/libraries that I built successfully in another multi-project
Expected behavior
I do not expect B and p1 here, since they are not in the current project dependencies.
System information
cabal version 3.4.0.0
,ghc ersion 8.8.4
FIX:
Adding a
cabal.project
file withFixes the issue. The issue may thus be caused by ghc-environment-files written by
cabal run
.The text was updated successfully, but these errors were encountered: