We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1fa43c + edcad58 commit 925dce1Copy full SHA for 925dce1
cmd/build.go
@@ -351,6 +351,13 @@ func buildGoBinary(targetOS string, vmArguments []string) {
351
fileutils.CopyDir(build.IntermediatesDirectoryPath(targetOS), build.OutputDirectoryPath(targetOS))
352
353
outputEngineFile := filepath.Join(build.OutputDirectoryPath(targetOS), build.EngineFilename(targetOS))
354
+ if _, err := os.Stat(outputEngineFile); err == nil || os.IsExist(err) {
355
+ err = os.RemoveAll(outputEngineFile)
356
+ if err != nil {
357
+ log.Errorf("Failed to remove old engine: %v", err)
358
+ os.Exit(1)
359
+ }
360
361
err := copy.Copy(
362
filepath.Join(engineCachePath, build.EngineFilename(targetOS)),
363
outputEngineFile,
0 commit comments