From 5d5f3737f4ec7eba1746609cdedd0a16802353ca Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 13 Nov 2024 14:09:10 +0100 Subject: [PATCH] fix: ignore cache error when file not found (#5129) --- internal/go/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/go/cache/cache.go b/internal/go/cache/cache.go index 7bf4f1d660e5..85899ebc92af 100644 --- a/internal/go/cache/cache.go +++ b/internal/go/cache/cache.go @@ -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")}