Skip to content

Commit

Permalink
fix: ignore cache error when file not found (#5129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Nov 13, 2024
1 parent fdeb3f3 commit 5d5f373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/go/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func GetBytes(c Cache, id ActionID) ([]byte, Entry, error) {
}
data, err := robustio.ReadFile(c.OutputFile(entry.OutputID))
if err != nil {
return nil, entry, err
return nil, entry, &entryNotFoundError{Err: err}
}
if sha256.Sum256(data) != entry.OutputID {
return nil, entry, &entryNotFoundError{Err: errors.New("bad checksum")}
Expand Down

0 comments on commit 5d5f373

Please sign in to comment.