Skip to content

Commit

Permalink
Merge pull request #473 from battlecode/jerrym-flush-build
Browse files Browse the repository at this point in the history
Flush build directory before run
  • Loading branch information
j-mao authored Jan 8, 2023
2 parents ff25fd2 + a8ef39c commit d6dfbbc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions saturn/pkg/run/java8.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func (s *Java8Scaffold) Prepare() *Step {
return fmt.Errorf("Refresh: %v", err)
}

log.Ctx(ctx).Debug().Msg("Flushing build directory.")
if err := os.RemoveAll(filepath.Join(s.root, "build")); err != nil {
return fmt.Errorf("os.RemoveAll: %v", err)
}

log.Ctx(ctx).Debug().Msg("Updating distribution.")
out, err := s.Scaffold.RunCommand(
ctx,
Expand Down

0 comments on commit d6dfbbc

Please sign in to comment.