-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PD check: do not treat library names as package names (#9132)
Fixes #9122
- Loading branch information
Showing
7 changed files
with
48 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cabal-version: 3.4 | ||
name: p | ||
Version: 2 | ||
Build-Type: Simple | ||
|
||
library |
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,10 @@ | ||
cabal-version: 3.4 | ||
name: q | ||
Version: 1 | ||
Build-Type: Simple | ||
|
||
library | ||
build-depends: q:p | ||
|
||
library p | ||
build-depends: p:p == 2 |
11 changes: 11 additions & 0 deletions
11
cabal-testsuite/PackageTests/Regression/T9122/setup.cabal.out
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,11 @@ | ||
# Setup configure | ||
Configuring p-2... | ||
# Setup build | ||
Preprocessing library for p-2... | ||
Building library for p-2... | ||
# Setup copy | ||
Installing library in <PATH> | ||
# Setup register | ||
Registering library for p-2... | ||
# Setup configure | ||
Configuring q-1... |
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,11 @@ | ||
# Setup configure | ||
Configuring p-2... | ||
# Setup build | ||
Preprocessing library for p-2... | ||
Building library for p-2... | ||
# Setup copy | ||
Installing library in <PATH> | ||
# Setup register | ||
Registering library for p-2... | ||
# Setup configure | ||
Configuring q-1... |
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,5 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupAndCabalTest $ withPackageDb $ do | ||
withDirectory "p" $ setup_install [] | ||
withDirectory "q" $ setup "configure" [] |
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,4 @@ | ||
synopsis: Fix dependency on an external package when an internal library with the same name exists | ||
packages: Cabal | ||
issues: #9122 | ||
prs: #9132 |