Skip to content

Commit

Permalink
Merge pull request #6436 from phadej/issue-6013
Browse files Browse the repository at this point in the history
Resolve #6013: Warn if packages and optional-packages are both empty
  • Loading branch information
phadej authored Dec 15, 2019
2 parents 65522af + 4e6128b commit b3c7982
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cabal-install/Distribution/Client/ProjectOrchestration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ establishProjectBaseContext verbosity cliConfig currentCommand = do
verbosity cabalDirLayout
projectConfig

-- https://github.com/haskell/cabal/issues/6013
when (null (projectPackages projectConfig) && null (projectPackagesOptional projectConfig)) $
warn verbosity "There are no packages or optional-packages in the project"

return ProjectBaseContext {
distDirLayout,
cabalDirLayout,
Expand Down

0 comments on commit b3c7982

Please sign in to comment.