Skip to content

Commit

Permalink
Print info about current project file in use to stderr (fix #10547)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Nov 12, 2024
1 parent 287d347 commit f2888ce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cabal-install/src/Distribution/Client/ProjectPlanning.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -397,13 +398,11 @@ 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
]
notice (verboseStderr verbosity) . render . vcat $
text "Configuration is affected by the following files:"
: [ text "-" <+> docProjectConfigPath path
| Explicit path <- Set.toList $ projectConfigProvenance projectConfig
]

return (projectConfig <> cliConfig, localPackages)
where
Expand Down

0 comments on commit f2888ce

Please sign in to comment.