We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BLOW_UNKNOWN
1 parent ffe24e1 commit 51f2123Copy full SHA for 51f2123
pkg/oci/artifact.go
@@ -262,6 +262,19 @@ func shouldTryOtherRepo(err error) bool {
262
}
263
264
265
- // try the following artifact only if a temporary error occurs
266
- return terr.Temporary()
+ // try the following artifact if a temporary error occurs
+ if terr.Temporary() {
267
+ return true
268
+ }
269
+
270
+ // `GCR` periodically returns `BLOB_UNKNOWN` error.
271
+ // cf. https://github.com/aquasecurity/trivy/discussions/8020
272
+ // In this case we need to check other repositories.
273
+ for _, e := range terr.Errors {
274
+ if e.Code == transport.BlobUnknownErrorCode {
275
276
277
278
279
+ return false
280
0 commit comments