Skip to content

Commit

Permalink
Typo, pr-9578
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Apr 30, 2024
1 parent 23310d9 commit 2ea8c83
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions changelog.d/pr-9578
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

0 comments on commit 2ea8c83

Please sign in to comment.