-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
priv deps: Don't component qualify private scopes
Originally, we were qualifying a private dependency with the component with that private dep. Now, we qualify a private dependency without the component, i.e. only with the package name and the scope name. However, we want the same private scope name to be shared across all components of a package (and, if different dependencies are desired across components, different scope names should be used). For example, the following package should not be possible to solve (and does not with this commit): cabal-version: 3.0 name: pkgC version: 0.1.0.0 build-type: Simple library private-build-depends: SameName with (libA == 0.1.0.0) build-depends: base executable myexe private-build-depends: SameName with (libA == 0.2.0.0) build-depends: base See the second case of the `same-scope-name` test.
- Loading branch information
Showing
6 changed files
with
18 additions
and
10 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
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
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
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
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
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