diff --git a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out index b517934c7d4..960739d6094 100644 --- a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out +++ b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out @@ -3,7 +3,6 @@ Downloading the latest package list from test-local-repo # cabal v2-run Configuration is affected by the following files: - cabal.project -Configuration is affected by the following files: - extra.project imported by: cabal.project Resolving dependencies... @@ -70,9 +69,7 @@ cyclical import of cyclical-2-out-out-self-b.config; Configuration is affected by the following files: - noncyclical-same-filename-a.config imported by: noncyclical-same-filename-a.project -Configuration is affected by the following files: - noncyclical-same-filename-a.project -Configuration is affected by the following files: - same-filename/noncyclical-same-filename-a.config imported by: noncyclical-same-filename-a.config imported by: noncyclical-same-filename-a.project @@ -89,9 +86,7 @@ Configuration is affected by the following files: - noncyclical-same-filename-b.config imported by: same-filename/noncyclical-same-filename-b.config imported by: noncyclical-same-filename-b.project -Configuration is affected by the following files: - noncyclical-same-filename-b.project -Configuration is affected by the following files: - same-filename/noncyclical-same-filename-b.config imported by: noncyclical-same-filename-b.project Up to date @@ -126,17 +121,14 @@ cyclical import of cyclical-same-filename-out-out-back.config; # cabal v2-build Configuration is affected by the following files: - hops-0.project -Configuration is affected by the following files: - hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops-4.config imported by: hops/hops-3.config imported by: hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops-6.config imported by: hops/hops-5.config imported by: hops-4.config @@ -144,7 +136,6 @@ Configuration is affected by the following files: imported by: hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops-8.config imported by: hops/hops-7.config imported by: hops-6.config @@ -154,22 +145,18 @@ Configuration is affected by the following files: imported by: hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops/hops-3.config imported by: hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops/hops-5.config imported by: hops-4.config imported by: hops/hops-3.config imported by: hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops/hops-7.config imported by: hops-6.config imported by: hops/hops-5.config @@ -178,7 +165,6 @@ Configuration is affected by the following files: imported by: hops-2.config imported by: hops/hops-1.config imported by: hops-0.project -Configuration is affected by the following files: - hops/hops-9.config imported by: hops-8.config imported by: hops/hops-7.config @@ -194,17 +180,14 @@ Up to date # cabal v2-build Configuration is affected by the following files: - oops-0.project -Configuration is affected by the following files: - oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops-4.config imported by: oops/oops-3.config imported by: oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops-6.config imported by: oops/oops-5.config imported by: oops-4.config @@ -212,7 +195,6 @@ Configuration is affected by the following files: imported by: oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops-8.config imported by: oops/oops-7.config imported by: oops-6.config @@ -222,22 +204,18 @@ Configuration is affected by the following files: imported by: oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops/oops-3.config imported by: oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops/oops-5.config imported by: oops-4.config imported by: oops/oops-3.config imported by: oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops/oops-7.config imported by: oops-6.config imported by: oops/oops-5.config @@ -246,7 +224,6 @@ Configuration is affected by the following files: imported by: oops-2.config imported by: oops/oops-1.config imported by: oops-0.project -Configuration is affected by the following files: - oops/oops-9.config imported by: oops-8.config imported by: oops/oops-7.config @@ -281,31 +258,25 @@ After searching the rest of the dependency tree exhaustively, these were the goa # cabal v2-build Configuration is affected by the following files: - yops-0.project -Configuration is affected by the following files: - yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops-4.config imported by: yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops-4.config imported by: yops/yops-3.config imported by: yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops-6.config imported by: yops/yops-5.config imported by: yops-0.project -Configuration is affected by the following files: - yops-6.config imported by: yops/yops-5.config imported by: yops-4.config imported by: yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops-6.config imported by: yops/yops-5.config imported by: yops-4.config @@ -313,17 +284,14 @@ Configuration is affected by the following files: imported by: yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops-8.config imported by: yops/yops-7.config imported by: yops-0.project -Configuration is affected by the following files: - yops-8.config imported by: yops/yops-7.config imported by: yops-6.config imported by: yops/yops-5.config imported by: yops-0.project -Configuration is affected by the following files: - yops-8.config imported by: yops/yops-7.config imported by: yops-6.config @@ -331,7 +299,6 @@ Configuration is affected by the following files: imported by: yops-4.config imported by: yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops-8.config imported by: yops/yops-7.config imported by: yops-6.config @@ -341,48 +308,38 @@ Configuration is affected by the following files: imported by: yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-3.config imported by: yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-5.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-5.config imported by: yops-4.config imported by: yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-5.config imported by: yops-4.config imported by: yops/yops-3.config imported by: yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-7.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-7.config imported by: yops-6.config imported by: yops/yops-5.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-7.config imported by: yops-6.config imported by: yops/yops-5.config imported by: yops-4.config imported by: yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-7.config imported by: yops-6.config imported by: yops/yops-5.config @@ -391,22 +348,18 @@ Configuration is affected by the following files: imported by: yops-2.config imported by: yops/yops-1.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-9.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-9.config imported by: yops-8.config imported by: yops/yops-7.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-9.config imported by: yops-8.config imported by: yops/yops-7.config imported by: yops-6.config imported by: yops/yops-5.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-9.config imported by: yops-8.config imported by: yops/yops-7.config @@ -415,7 +368,6 @@ Configuration is affected by the following files: imported by: yops-4.config imported by: yops/yops-3.config imported by: yops-0.project -Configuration is affected by the following files: - yops/yops-9.config imported by: yops-8.config imported by: yops/yops-7.config @@ -427,6 +379,282 @@ Configuration is affected by the following files: imported by: yops/yops-1.config imported by: yops-0.project Up to date +# checking if we detect when the same config is imported via many different paths (we don't) +# cabal v2-build +Configuration is affected by the following files: +- woops-0.project +- woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops-8.config + imported by: woops/woops-7.config + imported by: woops-0.project +- woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops/woops-1.config + imported by: woops-0.project +- woops/woops-3.config + imported by: woops-0.project +- woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops/woops-5.config + imported by: woops-0.project +- woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops/woops-7.config + imported by: woops-0.project +- woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- woops/woops-9.config + imported by: woops-0.project +- woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-0.project +- woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-5.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-7.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-9.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-0.project +- https://www.stackage.org/lts-21.25/cabal.config + imported by: woops/woops-9.config + imported by: woops-8.config + imported by: woops/woops-7.config + imported by: woops-6.config + imported by: woops/woops-5.config + imported by: woops-4.config + imported by: woops/woops-3.config + imported by: woops-2.config + imported by: woops/woops-1.config + imported by: woops-0.project +Resolving dependencies... +Build profile: -w ghc-9.4.8 -O1 +In order, the following will be built: + - my-0.1 (lib:my) (first run) +Configuring my-0.1... +Preprocessing library for my-0.1... +Building library for my-0.1... # checking bad conditional # cabal v2-build Error: [Cabal-7090] diff --git a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs index 67118d362c0..d1eddf1fff9 100644 --- a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs +++ b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs @@ -258,6 +258,9 @@ main = cabalTest . withRepo "repo" . recordMode RecordMarked $ do log "checking if we detect when the same config is imported via many different paths (we don't)" yopping <- cabal' "v2-build" [ "--project-file=yops-0.project" ] + log "checking if we detect when the same config is imported via many different paths (we don't)" + woopping <- cabal' "v2-build" [ "--project-file=woops-0.project" ] + log "checking bad conditional" badIf <- fails $ cabal' "v2-build" [ "--project-file=bad-conditional.project" ] assertOutputContains "Cannot set compiler in a conditional clause of a cabal project file" badIf