Skip to content

Commit

Permalink
Buildkite: Don't remove .hie files from previous builds
Browse files Browse the repository at this point in the history
Weeder now knows how to ignore orphaned .hie files.
  • Loading branch information
rvl committed Oct 21, 2021
1 parent 5c2ea7b commit d8a12e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .buildkite/rebuild.hs
Expand Up @@ -234,7 +234,7 @@ setupBuildDirectory dryRun buildDir = do
-- Remove certain files which get cached but could cause problems for subsequent
-- builds.
cleanBuildDirectory :: FilePath -> IO ()
cleanBuildDirectory buildDir = mapM_ rm =<< findTix buildDir <> findHie buildDir
cleanBuildDirectory buildDir = mapM_ rm =<< findTix buildDir

-- | Check for the presence of new or modified test data files which someone
-- forgot to check in.
Expand Down Expand Up @@ -328,9 +328,6 @@ titled heading action = do
weederStep :: DryRun -> IO ExitCode
weederStep dryRun = run dryRun "weeder" []

findHie :: FilePath -> IO [FilePath]
findHie dir = fold (find (suffix ".hie") dir) Fold.list

----------------------------------------------------------------------------
-- Stack Haskell Program Coverage and upload to Coveralls

Expand Down

0 comments on commit d8a12e1

Please sign in to comment.