# cabal v1-update Downloading the latest package list from test-local-repo # cabal v2-build Resolving dependencies... cabal: Could not resolve dependencies: [__0] trying: pkg-1.0 (user goal) [__1] next goal: setup-dep (user goal) [__1] rejecting: setup-dep-2.0 (conflict: pkg => setup-dep==1.*) [__1] rejecting: setup-dep-1.0 (constraint from user target requires ==2.0) [__1] fail (backjumping, conflict set: pkg, setup-dep) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: setup-dep (3), pkg (2) # pkg my-exe Main.hs: setup-dep from repo