File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ dirsToDelete
4343 -> m [Path Abs Dir ]
4444dirsToDelete cleanOpts = do
4545 packages <- getLocalPackages
46- let localPkgDirs = Map. keys packages
4746 case cleanOpts of
48- CleanShallow [] -> do
49- mapM distDirFromDir localPkgDirs
47+ CleanShallow [] ->
48+ -- Filter out packages listed as extra-deps
49+ mapM distDirFromDir . Map. keys . Map. filter (== False ) $ packages
5050 CleanShallow targets -> do
5151 localPkgViews <- getLocalPackageViews
5252 let localPkgNames = Map. keys localPkgViews
@@ -55,7 +55,7 @@ dirsToDelete cleanOpts = do
5555 [] -> mapM distDirFromDir (mapMaybe getPkgDir targets)
5656 xs -> throwM (NonLocalPackages xs)
5757 CleanFull -> do
58- pkgWorkDirs <- mapM workDirFromDir localPkgDirs
58+ pkgWorkDirs <- mapM workDirFromDir ( Map. keys packages)
5959 projectWorkDir <- getProjectWorkDir
6060 return (projectWorkDir : pkgWorkDirs)
6161
You can’t perform that action at this time.
0 commit comments