Skip to content

Commit ddc9843

Browse files
committed
Print out which project file we're using by default (fix #8519)
Before it's only printed under `-v`.
1 parent 0fbb0db commit ddc9843

File tree

175 files changed

+630
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+630
-17
lines changed

cabal-install/src/Distribution/Client/ProjectPlanning.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ rebuildProjectConfig
399399

400400
sequence_
401401
[ do
402-
info verbosity . render . vcat $
403-
text "this build was affected by the following (project) config files:"
402+
notice verbosity . render . vcat $
403+
text "Configuration is affected by the following files:"
404404
: [text "-" <+> docProjectConfigPath path]
405405
| Explicit path <- Set.toList $ projectConfigProvenance projectConfig
406406
]

cabal-testsuite/PackageTests/Backpack/Includes2/cabal-external-target.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.external.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Includes2/cabal-external.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.external.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Includes2/cabal-internal-target.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.internal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Includes2/cabal-internal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.internal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Includes2/cov.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal test
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Includes3/cabal-external.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.external.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Includes3/cabal-internal.out

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.internal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:
@@ -18,8 +20,7 @@ Configuring library 'indef' instantiated with
1820
Data.Map = containers-<VERSION>:Data.Map
1921
for I-0.1.0.0...
2022
Preprocessing library 'indef' for I-0.1.0.0...
21-
Building library 'indef' instantiated with
22-
Data.Map = containers-<VERSION>:Data.Map
23+
Building library 'indef' instantiated with Data.Map = containers-<VERSION>:Data.Map
2324
for I-0.1.0.0...
2425
Configuring executable 'exe' for I-0.1.0.0...
2526
Preprocessing executable 'exe' for I-0.1.0.0...

cabal-testsuite/PackageTests/Backpack/Includes3/cabal-repo.out

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# cabal v2-update
2+
Configuration is affected by the following files:
3+
- cabal.repo.project
24
Downloading the latest package list from test-local-repo
35
# cabal v2-build
6+
Configuration is affected by the following files:
7+
- cabal.repo.project
48
Resolving dependencies...
59
Build profile: -w ghc-<GHCVER> -O1
610
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/Reexport2/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Error:
46
Problem with module re-exports:

cabal-testsuite/PackageTests/Backpack/T6385/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:

cabal-testsuite/PackageTests/Backpack/bkpcabal01/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/BuildAutogenPackageGuard/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/BuildDeps/DepCycle/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Error:
46
Dependency cycle between the following components:

cabal-testsuite/PackageTests/BuildDeps/InternalLibrary1/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/BuildTargets/UseLocalPackage/use-local-version-of-package.out

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:
@@ -11,6 +13,8 @@ Building executable 'my-exe' for pkg-1.0...
1113
# pkg my-exe
1214
local pkg-1.0
1315
# cabal v2-build
16+
Configuration is affected by the following files:
17+
- cabal.project
1418
Resolving dependencies...
1519
Error: [Cabal-7107]
1620
Could not resolve dependencies:

cabal-testsuite/PackageTests/BuildTargets/UseLocalPackageForSetup/use-local-package-as-setup-dep.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Error: [Cabal-7107]
68
Could not resolve dependencies:

cabal-testsuite/PackageTests/BuildToolDepends/setup.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/BuildTools/External/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/BuildTools/Internal/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/CmmSources/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-run
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/CmmSourcesDyn/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-run
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/CmmSourcesExe/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-run
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ConfigFile/T8487/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O2
46
In order, the following will be built:

cabal-testsuite/PackageTests/CopyHie/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:

cabal-testsuite/PackageTests/CustomSegfault/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# cabal test
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:
57
- plain-0.1.0.0 *test (first run)
68
Configuring plain-0.1.0.0...
7-
Preprocessing library for plain-0.1.0.0...
8-
Building library for plain-0.1.0.0...
9-
Preprocessing test suite 'test' for plain-0.1.0.0...
10-
Building test suite 'test' for plain-0.1.0.0...
9+
Preprocessing library for plain-0.1.0.0..
10+
Building library for plain-0.1.0.0..
11+
Preprocessing test suite 'test' for plain-0.1.0.0..
12+
Building test suite 'test' for plain-0.1.0.0..
1113
Running 1 test suites...
1214
Test suite test: RUNNING...
1315
Test suite test: PASS
14-
Test suite logged to: <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/test/plain-0.1.0.0-test.log
15-
Package coverage report written to <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/hpc_index.html
16+
Test suite logged to: cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/test/plain-0.1.0.0-test.log
17+
Test coverage report written to cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/test/hpc_index.html
1618
1 of 1 test suites (1 of 1 test cases) passed.
17-
Package coverage report written to <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/hpc_index.html
19+
Package coverage report written to cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/plain-0.1.0.0/hpc_index.html

cabal-testsuite/PackageTests/CustomWithoutCabal/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/CustomWithoutCabalDefaultMain/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/Exec/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ExecModern/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ExternalCommand/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ExternalCommandEnv/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ExternalCommandExitCode/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ExternalCommandHelp/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/ExtraPackages/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-run
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:

cabal-testsuite/PackageTests/ExtraProgPath/setup.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Warning: cannot determine version of <ROOT>/pkg-config :
35
""
46
Resolving dependencies...

cabal-testsuite/PackageTests/FFI/CSourceDependsStub/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/FFI/ForeignOptsC/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/FFI/ForeignOptsCxx/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

cabal-testsuite/PackageTests/HaddockArgs/hoogle.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:

cabal-testsuite/PackageTests/HaddockArgs/quickjump.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:

cabal-testsuite/PackageTests/HaddockBuildDepends/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal build
4+
Configuration is affected by the following files:
5+
- cabal.project
46
Resolving dependencies...
57
Build profile: -w ghc-<GHCVER> -O1
68
In order, the following will be built:

cabal-testsuite/PackageTests/HaddockProject/haddock-project.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Downloading the latest package list from test-local-repo
33
# cabal haddock-project
44
Warning: haddock-project command is experimental, it might break in the future
55
Resolving dependencies...
6+
Configuration is affected by the following files:
7+
- cabal.project
68
Build profile: -w ghc-<GHCVER> -O1
79
In order, the following will be built:
810
- async-2.2.4 (lib) (requires build)
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# cabal v2-haddock
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
3-
No documentation was generated as this package does not contain a library. Perhaps you want to use the --haddock-all flag, or one or more of the --haddock-executables, --haddock-tests, --haddock-benchmarks or --haddock-internal flags.
5+
No documentation was generated as this package does not contain a library. Perhaps you want to use the --haddock-all flag, or one or more of the --haddock-executables, --haddock-tests, --haddock-benchmarks or --haddock-internal flags.

cabal-testsuite/PackageTests/InternalLibraries/cabal-per-package.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Error:
46
Internal libraries only supported with per-component builds.

cabal-testsuite/PackageTests/InternalLibraries/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# cabal v2-build
2+
Configuration is affected by the following files:
3+
- cabal.project
24
Resolving dependencies...
35
Build profile: -w ghc-<GHCVER> -O1
46
In order, the following will be built:

0 commit comments

Comments
 (0)