diff --git a/cabal-testsuite/PackageTests/MultipleLibraries/cabal.out b/cabal-testsuite/PackageTests/MultipleLibraries/cabal.out new file mode 100644 index 00000000000..7e51c00ef04 --- /dev/null +++ b/cabal-testsuite/PackageTests/MultipleLibraries/cabal.out @@ -0,0 +1,12 @@ +# cabal v2-build +Resolving dependencies... +Build profile: -w ghc- -O1 +In order, the following will be built: + - d-0.1.0.0 (lib:privatelib) (first run) + - p-0.1.0.0 (lib) (first run) +Configuring library 'privatelib' for d-0.1.0.0.. +Preprocessing library 'privatelib' for d-0.1.0.0.. +Building library 'privatelib' for d-0.1.0.0.. +Configuring library for p-0.1.0.0.. +cabal: Encountered missing or private dependencies: + d : {privatelib} ==0.1.0.0 diff --git a/cabal-testsuite/PackageTests/MultipleLibraries/cabal.project b/cabal-testsuite/PackageTests/MultipleLibraries/cabal.project new file mode 100644 index 00000000000..0cdfff2f054 --- /dev/null +++ b/cabal-testsuite/PackageTests/MultipleLibraries/cabal.project @@ -0,0 +1,4 @@ +packages: + d + p + diff --git a/cabal-testsuite/PackageTests/MultipleLibraries/cabal.test.hs b/cabal-testsuite/PackageTests/MultipleLibraries/cabal.test.hs new file mode 100644 index 00000000000..44f25b88d8a --- /dev/null +++ b/cabal-testsuite/PackageTests/MultipleLibraries/cabal.test.hs @@ -0,0 +1,4 @@ +import Test.Cabal.Prelude +main = cabalTest $ + void $ fails (cabal' "v2-build" ["p"]) + diff --git a/cabal-testsuite/PackageTests/MultipleLibraries/d/d.cabal b/cabal-testsuite/PackageTests/MultipleLibraries/d/d.cabal new file mode 100644 index 00000000000..8410ab97c32 --- /dev/null +++ b/cabal-testsuite/PackageTests/MultipleLibraries/d/d.cabal @@ -0,0 +1,12 @@ +cabal-version: 3.0 +name: d +version: 0.1.0.0 + +-- See issue #6038 +library + default-language: Haskell2010 + +library privatelib + visibility: private + default-language: Haskell2010 + diff --git a/cabal-testsuite/PackageTests/MultipleLibraries/p/p.cabal b/cabal-testsuite/PackageTests/MultipleLibraries/p/p.cabal new file mode 100644 index 00000000000..b7bbe480bfd --- /dev/null +++ b/cabal-testsuite/PackageTests/MultipleLibraries/p/p.cabal @@ -0,0 +1,8 @@ +cabal-version: 3.0 +name: p +version: 0.1.0.0 + +library + build-depends: d:privatelib + default-language: Haskell2010 +