Removing cabal.project is now unnecessary

This commit is contained in:
Andrea Bedini 2022-09-22 13:32:05 +02:00
parent 5c24681da8
commit 32d1345276

View File

@ -8,7 +8,7 @@ import Codec.Compression.GZip qualified as GZip
import Control.Monad (unless, when)
import Data.ByteString.Lazy qualified as BSL
import Data.Foldable (for_)
import Data.List (isPrefixOf, sortOn)
import Data.List (sortOn)
import Data.Maybe (fromMaybe)
import Data.Traversable (for)
import Development.Shake
@ -141,12 +141,6 @@ cmdBuild
cmd_ ["cp", "--recursive", "--no-target-directory", "--dereference", tdir, srcDir]
-- Delete cabal.project files if present
projectFiles <- liftIO $ filter ("cabal.project" `isPrefixOf`) <$> IO.getDirectoryContents srcDir
unless (null projectFiles) $ do
putWarn $ "Deleting cabal project files from " ++ srcDir
liftIO $ for_ projectFiles $ IO.removeFile . (srcDir </>)
applyPatches inputDir srcDir pkgId
when packageVersionForce $