File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
cabal-install/src/Distribution/Client Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -398,11 +398,13 @@ rebuildProjectConfig
398
398
localPackages <- phaseReadLocalPackages (projectConfig <> cliConfig)
399
399
return (projectConfig, localPackages)
400
400
401
- notice (verboseStderr verbosity) . render . vcat $
402
- text " Configuration is affected by the following files:"
403
- : [ text " -" <+> docProjectConfigPath path
404
- | Explicit path <- Set. toList . (if verbosity >= verbose then id else onlyTopLevelProvenance) $ projectConfigProvenance projectConfig
405
- ]
401
+ let configfiles =
402
+ [ text " -" <+> docProjectConfigPath path
403
+ | Explicit path <- Set. toList . (if verbosity >= verbose then id else onlyTopLevelProvenance) $ projectConfigProvenance projectConfig
404
+ ]
405
+ unless (null configfiles) $
406
+ notice (verboseStderr verbosity) . render . vcat $
407
+ text " Configuration is affected by the following files:" : configfiles
406
408
407
409
return (projectConfig <> cliConfig, localPackages)
408
410
where
You can’t perform that action at this time.
0 commit comments