mirror of
https://github.com/go-task/task.git
synced 2025-07-15 01:35:00 +02:00
fix: only rewrite checksum files if the checksum has changed
This commit is contained in:
@ -42,7 +42,7 @@ func (checker *ChecksumChecker) IsUpToDate(t *taskfile.Task) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
if !checker.dry {
|
||||
if !checker.dry && oldMd5 != newMd5 {
|
||||
_ = os.MkdirAll(filepathext.SmartJoin(checker.tempDir, "checksum"), 0o755)
|
||||
if err = os.WriteFile(checksumFile, []byte(newMd5+"\n"), 0o644); err != nil {
|
||||
return false, err
|
||||
|
Reference in New Issue
Block a user