File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
15
15
"github.com/aws/aws-sdk-go-v2/credentials"
16
16
"github.com/aws/aws-sdk-go-v2/feature/s3/manager"
17
17
"github.com/aws/aws-sdk-go-v2/service/s3"
18
- "github.com/aws/smithy-go "
18
+ s3types "github.com/aws/aws-sdk-go-v2/service/s3/types "
19
19
"github.com/containerd/containerd/content"
20
20
"github.com/containerd/containerd/labels"
21
21
"github.com/moby/buildkit/cache/remotecache"
@@ -472,6 +472,7 @@ func (s3Client *s3Client) blobKey(dgst digest.Digest) string {
472
472
}
473
473
474
474
func isNotFound (err error ) bool {
475
- var errapi smithy.APIError
476
- return errors .As (err , & errapi ) && (errapi .ErrorCode () == "NoSuchKey" || errapi .ErrorCode () == "NotFound" )
475
+ var nf * s3types.NotFound
476
+ var nsk * s3types.NoSuchKey
477
+ return errors .As (err , & nf ) || errors .As (err , & nsk )
477
478
}
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ require (
14
14
github.com/aws/aws-sdk-go-v2/credentials v1.16.16
15
15
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.15.15
16
16
github.com/aws/aws-sdk-go-v2/service/s3 v1.48.1
17
- github.com/aws/smithy-go v1.19.0
18
17
github.com/containerd/console v1.0.3
19
18
github.com/containerd/containerd v1.7.12
20
19
github.com/containerd/continuity v0.4.2
@@ -123,6 +122,7 @@ require (
123
122
github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 // indirect
124
123
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 // indirect
125
124
github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 // indirect
125
+ github.com/aws/smithy-go v1.19.0 // indirect
126
126
github.com/beorn7/perks v1.0.1 // indirect
127
127
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
128
128
github.com/cespare/xxhash/v2 v2.2.0 // indirect
You can’t perform that action at this time.
0 commit comments