Skip to content

Commit

Permalink
Merge pull request #5257 from tonistiigi/remotecache-not-implemented-err
Browse files Browse the repository at this point in the history
remotecache: handle not implemented error for Info()
  • Loading branch information
tonistiigi committed Aug 15, 2024
2 parents bff1d81 + 8fdf84f commit b04830b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cache/remotecache/v1/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"sort"

cerrdefs "github.com/containerd/errdefs"
"github.com/moby/buildkit/solver"
"github.com/moby/buildkit/util/bklog"
digest "github.com/opencontainers/go-digest"
Expand Down Expand Up @@ -281,7 +282,9 @@ func marshalRemote(ctx context.Context, r *solver.Remote, state *marshalState) s
if r.Provider != nil {
for _, d := range r.Descriptors {
if _, err := r.Provider.Info(ctx, d.Digest); err != nil {
return ""
if !cerrdefs.IsNotImplemented(err) {
return ""
}
}
}
}
Expand Down

0 comments on commit b04830b

Please sign in to comment.