mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-11-29 14:33:39 +03:00
Removing cabal.project is now unnecessary
This commit is contained in:
parent
5c24681da8
commit
32d1345276
@ -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 $
|
||||
|
Loading…
Reference in New Issue
Block a user