Skip to content

Commit

Permalink
fixup! Extract dependencies download to its own function
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila committed Mar 21, 2024
1 parent 7f15106 commit a518031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ func copyFile(src string, dst string, dstFileMode os.FileMode) error {
}
defer srcFile.Close()

dstFile, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE, dstFileMode)
dstFile, err := os.OpenFile(dst, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, dstFileMode)
if err != nil {
return fmt.Errorf("opening dst file %q: %w", dst, err)
}
Expand Down

0 comments on commit a518031

Please sign in to comment.