Skip to content

Commit 5d5f373

Browse files
authored
fix: ignore cache error when file not found (#5129)
1 parent fdeb3f3 commit 5d5f373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/go/cache/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func GetBytes(c Cache, id ActionID) ([]byte, Entry, error) {
293293
}
294294
data, err := robustio.ReadFile(c.OutputFile(entry.OutputID))
295295
if err != nil {
296-
return nil, entry, err
296+
return nil, entry, &entryNotFoundError{Err: err}
297297
}
298298
if sha256.Sum256(data) != entry.OutputID {
299299
return nil, entry, &entryNotFoundError{Err: errors.New("bad checksum")}

0 commit comments

Comments
 (0)