From e300cc887f67376f89b9ba16c982eab9a71fe977 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 25 Apr 2020 18:48:00 +0200 Subject: [PATCH] Change 'optional-packages' default on missing cabal.project Fixes #6739 --- cabal-install/Distribution/Client/ProjectConfig.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cabal-install/Distribution/Client/ProjectConfig.hs b/cabal-install/Distribution/Client/ProjectConfig.hs index d3ca6913202..14a72135e74 100644 --- a/cabal-install/Distribution/Client/ProjectConfig.hs +++ b/cabal-install/Distribution/Client/ProjectConfig.hs @@ -544,8 +544,9 @@ readProjectLocalConfigOrDefault verbosity distDirLayout = do -- We expect a package in the current directory. projectPackages = [ "./*.cabal" ], - -- This is to automatically pick up deps that we unpack locally. - projectPackagesOptional = [ "./*/*.cabal" ], + -- This was [ "./*/*.cabal" ] previously, but + -- confused users: https://github.com/haskell/cabal/issues/6739 + projectPackagesOptional = [ ], projectConfigProvenance = Set.singleton Implicit }