diff --git a/cabal-install-solver/src/Distribution/Solver/Types/ProjectConfigPath.hs b/cabal-install-solver/src/Distribution/Solver/Types/ProjectConfigPath.hs
index c57ade0c3e35621380ab26637d77d9d4c623ed2e..b98d493656c598797164dad5fc2f79ec3322564f 100644
--- a/cabal-install-solver/src/Distribution/Solver/Types/ProjectConfigPath.hs
+++ b/cabal-install-solver/src/Distribution/Solver/Types/ProjectConfigPath.hs
@@ -16,6 +16,7 @@ module Distribution.Solver.Types.ProjectConfigPath
 
     -- * Checks and Normalization
     , isCyclicConfigPath
+    , isTopLevelConfigPath
     , canonicalizeConfigPath
     ) where
 
@@ -138,6 +139,11 @@ nullProjectConfigPath = ProjectConfigPath $ "unused" :| []
 isCyclicConfigPath :: ProjectConfigPath -> Bool
 isCyclicConfigPath (ProjectConfigPath p) = length p /= length (NE.nub p)
 
+-- | Check if the project config path is top-level, meaning it was not included by
+-- some other project config.
+isTopLevelConfigPath :: ProjectConfigPath -> Bool
+isTopLevelConfigPath (ProjectConfigPath p) = NE.length p == 1
+
 -- | Prepends the path of the importee to the importer path.
 consProjectConfigPath :: FilePath -> ProjectConfigPath -> ProjectConfigPath
 consProjectConfigPath p ps = ProjectConfigPath (p <| coerce ps)
diff --git a/cabal-install/src/Distribution/Client/ProjectConfig.hs b/cabal-install/src/Distribution/Client/ProjectConfig.hs
index 72328978d2fba690b11a269738d2bcf9d40c5621..89de6ea869ce379b91b77ab2e66d9cfc8de02ead 100644
--- a/cabal-install/src/Distribution/Client/ProjectConfig.hs
+++ b/cabal-install/src/Distribution/Client/ProjectConfig.hs
@@ -37,6 +37,7 @@ module Distribution.Client.ProjectConfig
   , writeProjectLocalFreezeConfig
   , writeProjectConfigFile
   , commandLineFlagsToProjectConfig
+  , onlyTopLevelProvenance
 
     -- * Packages within projects
   , ProjectPackageLocation (..)
@@ -1753,3 +1754,9 @@ checkBadPerPackageCompilerPaths compilerPrograms packagesConfig =
        ] of
     [] -> return ()
     ps -> throwIO (BadPerPackageCompilerPaths ps)
+
+-- | Filter out non-top-level project configs.
+onlyTopLevelProvenance :: Set ProjectConfigProvenance -> Set ProjectConfigProvenance
+onlyTopLevelProvenance = Set.filter $ \case
+  Implicit -> False
+  Explicit ps -> isTopLevelConfigPath ps
diff --git a/cabal-install/src/Distribution/Client/ProjectPlanning.hs b/cabal-install/src/Distribution/Client/ProjectPlanning.hs
index a0a978bd63470a95fad0435850542c6b215be630..30a0bd17341e49e62da20f4aec2099490b97e859 100644
--- a/cabal-install/src/Distribution/Client/ProjectPlanning.hs
+++ b/cabal-install/src/Distribution/Client/ProjectPlanning.hs
@@ -195,6 +195,7 @@ import Distribution.Backpack.LinkedComponent
 import Distribution.Backpack.ModuleShape
 
 import Distribution.Simple.Utils
+import Distribution.Verbosity
 import Distribution.Version
 
 import qualified Distribution.InstalledPackageInfo as IPI
@@ -397,13 +398,13 @@ rebuildProjectConfig
           localPackages <- phaseReadLocalPackages (projectConfig <> cliConfig)
           return (projectConfig, localPackages)
 
-    sequence_
-      [ do
-        notice verbosity . render . vcat $
-          text "Configuration is affected by the following files:"
-            : [text "-" <+> docProjectConfigPath path]
-      | Explicit path <- Set.toList $ projectConfigProvenance projectConfig
-      ]
+    let configfiles =
+          [ text "-" <+> docProjectConfigPath path
+          | Explicit path <- Set.toList . (if verbosity >= verbose then id else onlyTopLevelProvenance) $ projectConfigProvenance projectConfig
+          ]
+    unless (null configfiles) $
+      notice (verboseStderr verbosity) . render . vcat $
+        text "Configuration is affected by the following files:" : configfiles
 
     return (projectConfig <> cliConfig, localPackages)
     where
diff --git a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out
index b517934c7d4af4b9fb38618332c9fc82093f9771..c2690ee436683d44251872baffad473edb44c212 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
diff --git a/cabal-testsuite/PackageTests/NewConfigure/LocalConfigOverwrite/cabal.out b/cabal-testsuite/PackageTests/NewConfigure/LocalConfigOverwrite/cabal.out
index a8f7c951277b7043380c1a169e294df024d0f3ee..14c74f590ece4acba85f489f5989d2a3b8a9ccda 100644
--- a/cabal-testsuite/PackageTests/NewConfigure/LocalConfigOverwrite/cabal.out
+++ b/cabal-testsuite/PackageTests/NewConfigure/LocalConfigOverwrite/cabal.out
@@ -1,12 +1,10 @@
 # cabal v2-configure
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - cabal.project.local
 'cabal.project.local' already exists, backing it up to 'cabal.project.local~'.
 # cabal v2-configure
 Configuration is affected by the following files:
 - foo.project
-Configuration is affected by the following files:
 - foo.project.local
 'foo.project.local' already exists, backing it up to 'foo.project.local~'.
diff --git a/cabal-testsuite/PackageTests/NewFreeze/BuildTools/new_freeze.out b/cabal-testsuite/PackageTests/NewFreeze/BuildTools/new_freeze.out
index fa90f30f4715d9265929e5b959460ec38b5719de..9674cd0cc8b8412e4aa8d01b9c88b5ccad95a875 100644
--- a/cabal-testsuite/PackageTests/NewFreeze/BuildTools/new_freeze.out
+++ b/cabal-testsuite/PackageTests/NewFreeze/BuildTools/new_freeze.out
@@ -18,7 +18,6 @@ Wrote freeze file: <ROOT>/cabal.project.freeze
 # cabal v2-build
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - cabal.project.freeze
 Resolving dependencies...
 Build profile: -w ghc-<GHCVER> -O1
diff --git a/cabal-testsuite/PackageTests/NewFreeze/Flags/new_freeze.out b/cabal-testsuite/PackageTests/NewFreeze/Flags/new_freeze.out
index 84064b158d5a7cea78a13d3347055881560c6606..8adf0bf27023f7c01ab0b16c182ab2a82595e4b0 100644
--- a/cabal-testsuite/PackageTests/NewFreeze/Flags/new_freeze.out
+++ b/cabal-testsuite/PackageTests/NewFreeze/Flags/new_freeze.out
@@ -17,7 +17,6 @@ Wrote freeze file: <ROOT>/cabal.project.freeze
 # cabal v2-build
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - cabal.project.freeze
 Resolving dependencies...
 Build profile: -w ghc-<GHCVER> -O1
diff --git a/cabal-testsuite/PackageTests/NewFreeze/FreezeFile/new_freeze.out b/cabal-testsuite/PackageTests/NewFreeze/FreezeFile/new_freeze.out
index 540a69d4128827fa437ef5e770cfe147df073302..f07819538f4aa4df6a17badce9ad0a1db61ff7b6 100644
--- a/cabal-testsuite/PackageTests/NewFreeze/FreezeFile/new_freeze.out
+++ b/cabal-testsuite/PackageTests/NewFreeze/FreezeFile/new_freeze.out
@@ -24,7 +24,6 @@ Wrote freeze file: <ROOT>/cabal.project.freeze
 # cabal v2-build
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - cabal.project.freeze
 Resolving dependencies...
 Build profile: -w ghc-<GHCVER> -O1
@@ -41,7 +40,6 @@ Building executable 'my-exe' for my-local-package-1.0...
 # cabal v2-freeze
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - cabal.project.freeze
 Wrote freeze file: <ROOT>/cabal.project.freeze
 # cabal v2-build
diff --git a/cabal-testsuite/PackageTests/RelativePathProjectImports/cabal.out b/cabal-testsuite/PackageTests/RelativePathProjectImports/cabal.out
index d5870b1955bf7e870a070eeb2db39e428c395f9f..10c4953236f2755e8fcbeb3a64616af2a6d733ec 100644
--- a/cabal-testsuite/PackageTests/RelativePathProjectImports/cabal.out
+++ b/cabal-testsuite/PackageTests/RelativePathProjectImports/cabal.out
@@ -1,7 +1,6 @@
 # cabal build
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - dep/cabal.project
     imported by: cabal.project
 Resolving dependencies...
@@ -22,7 +21,6 @@ Building library for main-0.1...
 # cabal build
 Configuration is affected by the following files:
 - cabal.project
-Configuration is affected by the following files:
 - dep/cabal.project
     imported by: cabal.project
 Resolving dependencies...
diff --git a/cabal-testsuite/PackageTests/VersionPriority/1-local.out b/cabal-testsuite/PackageTests/VersionPriority/1-local.out
index 1806aebd5a845df22e46382bced48c25b7df74f9..acca16195347bdc8c8e2856c99423c7a7414cda6 100644
--- a/cabal-testsuite/PackageTests/VersionPriority/1-local.out
+++ b/cabal-testsuite/PackageTests/VersionPriority/1-local.out
@@ -3,7 +3,6 @@ Downloading the latest package list from test-local-repo
 # cabal v2-build
 Configuration is affected by the following files:
 - 1-local-constraints-import.project
-Configuration is affected by the following files:
 - stackage-local.config
     imported by: 1-local-constraints-import.project
 Resolving dependencies...
@@ -21,7 +20,6 @@ After searching the rest of the dependency tree exhaustively, these were the goa
 # cabal v2-build
 Configuration is affected by the following files:
 - 1-local-import-constraints.project
-Configuration is affected by the following files:
 - stackage-local.config
     imported by: 1-local-import-constraints.project
 Resolving dependencies...
diff --git a/cabal-testsuite/PackageTests/VersionPriority/1-web.out b/cabal-testsuite/PackageTests/VersionPriority/1-web.out
index 13e930c943b14a95cd330c13de18fb84a7c0c033..f7ca5a23be8a1f04abdec3427f7a438124892aa0 100644
--- a/cabal-testsuite/PackageTests/VersionPriority/1-web.out
+++ b/cabal-testsuite/PackageTests/VersionPriority/1-web.out
@@ -3,10 +3,8 @@ Downloading the latest package list from test-local-repo
 # cabal v2-build
 Configuration is affected by the following files:
 - 1-web-constraints-import.project
-Configuration is affected by the following files:
 - project-stackage/nightly-2023-12-07.config
     imported by: 1-web-constraints-import.project
-Configuration is affected by the following files:
 - with-ghc.config
     imported by: 1-web-constraints-import.project
 Resolving dependencies...
@@ -24,10 +22,8 @@ After searching the rest of the dependency tree exhaustively, these were the goa
 # cabal v2-build
 Configuration is affected by the following files:
 - 1-web-import-constraints.project
-Configuration is affected by the following files:
 - project-stackage/nightly-2023-12-07.config
     imported by: 1-web-import-constraints.project
-Configuration is affected by the following files:
 - with-ghc.config
     imported by: 1-web-import-constraints.project
 Resolving dependencies...
diff --git a/cabal-testsuite/PackageTests/VersionPriority/2-local.out b/cabal-testsuite/PackageTests/VersionPriority/2-local.out
index 211c4ee9d9ca92977fd4e321b326bf758f5a8027..bf3ae4cb27c80819f9a4d885045705ebb70fb280 100644
--- a/cabal-testsuite/PackageTests/VersionPriority/2-local.out
+++ b/cabal-testsuite/PackageTests/VersionPriority/2-local.out
@@ -3,10 +3,8 @@ Downloading the latest package list from test-local-repo
 # cabal v2-build
 Configuration is affected by the following files:
 - 2-local-constraints-import.project
-Configuration is affected by the following files:
 - hop-local.config
     imported by: 2-local-constraints-import.project
-Configuration is affected by the following files:
 - stackage-local.config
     imported by: hop-local.config
     imported by: 2-local-constraints-import.project
@@ -26,10 +24,8 @@ After searching the rest of the dependency tree exhaustively, these were the goa
 # cabal v2-build
 Configuration is affected by the following files:
 - 2-local-import-constraints.project
-Configuration is affected by the following files:
 - hop-local.config
     imported by: 2-local-import-constraints.project
-Configuration is affected by the following files:
 - stackage-local.config
     imported by: hop-local.config
     imported by: 2-local-import-constraints.project
diff --git a/cabal-testsuite/PackageTests/VersionPriority/2-web.out b/cabal-testsuite/PackageTests/VersionPriority/2-web.out
index d592a88a472b66a198616d8930cdb1f0104078bc..17bc5a01962999012c55be53bfad0f14914f3de9 100644
--- a/cabal-testsuite/PackageTests/VersionPriority/2-web.out
+++ b/cabal-testsuite/PackageTests/VersionPriority/2-web.out
@@ -3,14 +3,11 @@ Downloading the latest package list from test-local-repo
 # cabal v2-build
 Configuration is affected by the following files:
 - 2-web-constraints-import.project
-Configuration is affected by the following files:
 - project-stackage/nightly-2023-12-07.config
     imported by: stackage-web.config
     imported by: 2-web-constraints-import.project
-Configuration is affected by the following files:
 - stackage-web.config
     imported by: 2-web-constraints-import.project
-Configuration is affected by the following files:
 - with-ghc.config
     imported by: 2-web-constraints-import.project
 Resolving dependencies...
@@ -29,14 +26,11 @@ After searching the rest of the dependency tree exhaustively, these were the goa
 # cabal v2-build
 Configuration is affected by the following files:
 - 2-web-import-constraints.project
-Configuration is affected by the following files:
 - project-stackage/nightly-2023-12-07.config
     imported by: stackage-web.config
     imported by: 2-web-import-constraints.project
-Configuration is affected by the following files:
 - stackage-web.config
     imported by: 2-web-import-constraints.project
-Configuration is affected by the following files:
 - with-ghc.config
     imported by: 2-web-import-constraints.project
 Resolving dependencies...
diff --git a/cabal-testsuite/PackageTests/VersionPriority/3-web.out b/cabal-testsuite/PackageTests/VersionPriority/3-web.out
index 9f26901c50ab9459ff3f46666c2c124aa3974f8d..d9eee435ab1b675c054abf68cc0ef6aa53811100 100644
--- a/cabal-testsuite/PackageTests/VersionPriority/3-web.out
+++ b/cabal-testsuite/PackageTests/VersionPriority/3-web.out
@@ -3,19 +3,15 @@ Downloading the latest package list from test-local-repo
 # cabal v2-build
 Configuration is affected by the following files:
 - 3-web-constraints-import.project
-Configuration is affected by the following files:
 - hop-web.config
     imported by: 3-web-constraints-import.project
-Configuration is affected by the following files:
 - project-stackage/nightly-2023-12-07.config
     imported by: stackage-web.config
     imported by: hop-web.config
     imported by: 3-web-constraints-import.project
-Configuration is affected by the following files:
 - stackage-web.config
     imported by: hop-web.config
     imported by: 3-web-constraints-import.project
-Configuration is affected by the following files:
 - with-ghc.config
     imported by: 3-web-constraints-import.project
 Resolving dependencies...
@@ -35,19 +31,15 @@ After searching the rest of the dependency tree exhaustively, these were the goa
 # cabal v2-build
 Configuration is affected by the following files:
 - 3-web-import-constraints.project
-Configuration is affected by the following files:
 - hop-web.config
     imported by: 3-web-import-constraints.project
-Configuration is affected by the following files:
 - project-stackage/nightly-2023-12-07.config
     imported by: stackage-web.config
     imported by: hop-web.config
     imported by: 3-web-import-constraints.project
-Configuration is affected by the following files:
 - stackage-web.config
     imported by: hop-web.config
     imported by: 3-web-import-constraints.project
-Configuration is affected by the following files:
 - with-ghc.config
     imported by: 3-web-import-constraints.project
 Resolving dependencies...