Skip to content

Commit 4b4a8e5

Browse files
committed
downloader: do not error out if retrieving remote last-modified for cached images fails
Signed-off-by: Norio Nomura <[email protected]>
1 parent f658f33 commit 4b4a8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func Download(ctx context.Context, local, remote string, opts ...Opt) (*Result,
241241
}
242242
} else {
243243
if match, err := matchLastModified(ctx, shadTime, remote); err != nil {
244-
return nil, err
244+
logrus.WithError(err).Info("Failed to retrieve last-modified for cached digest-less image; using cached image.")
245245
} else if match {
246246
if err := copyLocal(ctx, localPath, shadData, ext, o.decompress, o.description, o.expectedDigest); err != nil {
247247
return nil, err

0 commit comments

Comments
 (0)