-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23310d9
commit 2ea8c83
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
synopsis: Show provenance of project constraints | ||
description: | ||
Show imports when the solver rejects a package version due to a project | ||
constraint. Even though imports are relative to their parent when imported, | ||
their paths are shown relative to the directory of the project in the solver | ||
output. | ||
|
||
``` | ||
$ cabal build all --dry-run | ||
... | ||
[__1] next goal: hashable | ||
[__1] rejecting: hashable-1.4.3.0 | ||
(constraint from cabal.project requires ==1.4.2.0) | ||
[__1] rejecting: hashable-1.4.2.0 | ||
(constraint from project-stackage/nightly-2023-12-07.config requires ==1.4.3.0) | ||
imported by: cabal.project | ||
``` | ||
|
||
Fixes some test failures detecting cycles in imports, when; | ||
|
||
- the wrong import was reported as starting the cycle | ||
- a cycle was reported that wasn't actually a cycle | ||
|
||
packages: cabal-install-solver cabal-install | ||
prs: #9578 | ||
issues: #9562 |