File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ synopsis: Show provenance of project constraints
2
+ description:
3
+ Show imports when the solver rejects a package version due to a project
4
+ constraint. Even though imports are relative to their parent when imported,
5
+ their paths are shown relative to the directory of the project in the solver
6
+ output.
7
+
8
+ ```
9
+ $ cabal build all --dry-run
10
+ ...
11
+ [__1] next goal: hashable
12
+ [__1] rejecting: hashable-1.4.3.0
13
+ (constraint from cabal.project requires ==1.4.2.0)
14
+ [__1] rejecting: hashable-1.4.2.0
15
+ (constraint from project-stackage/nightly-2023-12-07.config requires ==1.4.3.0)
16
+ imported by: cabal.project
17
+ ```
18
+
19
+ Fixes some test failures detecting cycles in imports, when;
20
+
21
+ - the wrong import was reported as starting the cycle
22
+ - a cycle was reported that wasn't actually a cycle
23
+
24
+ packages: cabal-install-solver cabal-install
25
+ prs: #9578
26
+ issues: #9562
You can’t perform that action at this time.
0 commit comments