mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 19:05:32 +00:00
Merge pull request #1787 from mtrmac/update-image-1.10
[release-1.10] Update c/image from the release-5.23 branch
This commit is contained in:
commit
929763f010
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.17
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/containers/common v0.50.1
|
github.com/containers/common v0.50.1
|
||||||
github.com/containers/image/v5 v5.23.0
|
github.com/containers/image/v5 v5.23.1-0.20221019201342-d92bac8cb807
|
||||||
github.com/containers/ocicrypt v1.1.5
|
github.com/containers/ocicrypt v1.1.5
|
||||||
github.com/containers/storage v1.43.0
|
github.com/containers/storage v1.43.0
|
||||||
github.com/opencontainers/go-digest v1.0.0
|
github.com/opencontainers/go-digest v1.0.0
|
||||||
|
3
go.sum
3
go.sum
@ -386,8 +386,9 @@ github.com/containernetworking/plugins v1.0.1/go.mod h1:QHCfGpaTwYTbbH+nZXKVTxNB
|
|||||||
github.com/containernetworking/plugins v1.1.1/go.mod h1:Sr5TH/eBsGLXK/h71HeLfX19sZPp3ry5uHSkI4LPxV8=
|
github.com/containernetworking/plugins v1.1.1/go.mod h1:Sr5TH/eBsGLXK/h71HeLfX19sZPp3ry5uHSkI4LPxV8=
|
||||||
github.com/containers/common v0.50.1 h1:AYRAf1xyahNVRez49KIkREInNf36SQx1lyLY9M95wQI=
|
github.com/containers/common v0.50.1 h1:AYRAf1xyahNVRez49KIkREInNf36SQx1lyLY9M95wQI=
|
||||||
github.com/containers/common v0.50.1/go.mod h1:XnWlXPyE9Ky+8v8MfYWJZFnejkprAkUeo0DTWmSiwcY=
|
github.com/containers/common v0.50.1/go.mod h1:XnWlXPyE9Ky+8v8MfYWJZFnejkprAkUeo0DTWmSiwcY=
|
||||||
github.com/containers/image/v5 v5.23.0 h1:Uv/n8zsHVUBBJK2rfBUHbN4CutHHmsQeyi4f80lAOf8=
|
|
||||||
github.com/containers/image/v5 v5.23.0/go.mod h1:EXFFGEsL99S6aqLqK2mQJ3yrNh6Q05UCHt4mhF9JNoM=
|
github.com/containers/image/v5 v5.23.0/go.mod h1:EXFFGEsL99S6aqLqK2mQJ3yrNh6Q05UCHt4mhF9JNoM=
|
||||||
|
github.com/containers/image/v5 v5.23.1-0.20221019201342-d92bac8cb807 h1:iiVgleqv1Pfu9k3k2/SqkbDmUb8GZ+y1Mti6TsW8xhc=
|
||||||
|
github.com/containers/image/v5 v5.23.1-0.20221019201342-d92bac8cb807/go.mod h1:EXFFGEsL99S6aqLqK2mQJ3yrNh6Q05UCHt4mhF9JNoM=
|
||||||
github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a h1:spAGlqziZjCJL25C6F1zsQY05tfCKE9F5YwtEWWe6hU=
|
github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a h1:spAGlqziZjCJL25C6F1zsQY05tfCKE9F5YwtEWWe6hU=
|
||||||
github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
|
github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
|
||||||
github.com/containers/ocicrypt v1.0.1/go.mod h1:MeJDzk1RJHv89LjsH0Sp5KTY3ZYkjXO/C+bKAeWFIrc=
|
github.com/containers/ocicrypt v1.0.1/go.mod h1:MeJDzk1RJHv89LjsH0Sp5KTY3ZYkjXO/C+bKAeWFIrc=
|
||||||
|
25
vendor/github.com/containers/image/v5/docker/docker_client.go
generated
vendored
25
vendor/github.com/containers/image/v5/docker/docker_client.go
generated
vendored
@ -1,6 +1,7 @@
|
|||||||
package docker
|
package docker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
@ -983,15 +984,25 @@ func (c *dockerClient) getOCIDescriptorContents(ctx context.Context, ref dockerR
|
|||||||
// isManifestUnknownError returns true iff err from fetchManifest is a “manifest unknown” error.
|
// isManifestUnknownError returns true iff err from fetchManifest is a “manifest unknown” error.
|
||||||
func isManifestUnknownError(err error) bool {
|
func isManifestUnknownError(err error) bool {
|
||||||
var errs errcode.Errors
|
var errs errcode.Errors
|
||||||
if !errors.As(err, &errs) || len(errs) == 0 {
|
if errors.As(err, &errs) && len(errs) != 0 {
|
||||||
return false
|
firstErr := errs[0]
|
||||||
|
// docker/distribution, and as defined in the spec
|
||||||
|
var ec errcode.ErrorCoder
|
||||||
|
if errors.As(firstErr, &ec) && ec.ErrorCode() == v2.ErrorCodeManifestUnknown {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
// registry.redhat.io as of October 2022
|
||||||
|
var e errcode.Error
|
||||||
|
if errors.As(firstErr, &e) && e.ErrorCode() == errcode.ErrorCodeUnknown && e.Message == "Not Found" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
err = errs[0]
|
// ALSO registry.redhat.io as of October 2022
|
||||||
ec, ok := err.(errcode.ErrorCoder)
|
var unexpected *unexpectedHTTPResponseError
|
||||||
if !ok {
|
if errors.As(err, &unexpected) && unexpected.StatusCode == http.StatusNotFound && bytes.Contains(unexpected.Response, []byte("Not found")) {
|
||||||
return false
|
return true
|
||||||
}
|
}
|
||||||
return ec.ErrorCode() == v2.ErrorCodeManifestUnknown
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// getSigstoreAttachmentManifest loads and parses the manifest for sigstore attachments for
|
// getSigstoreAttachmentManifest loads and parses the manifest for sigstore attachments for
|
||||||
|
1
vendor/github.com/containers/image/v5/docker/docker_image_dest.go
generated
vendored
1
vendor/github.com/containers/image/v5/docker/docker_image_dest.go
generated
vendored
@ -653,6 +653,7 @@ func (d *dockerImageDestination) putSignaturesToSigstoreAttachments(ctx context.
|
|||||||
Digest: "", // We will fill this in later.
|
Digest: "", // We will fill this in later.
|
||||||
Size: 0,
|
Size: 0,
|
||||||
}, nil)
|
}, nil)
|
||||||
|
ociConfig.RootFS.Type = "layers"
|
||||||
} else {
|
} else {
|
||||||
logrus.Debugf("Fetching sigstore attachment config %s", ociManifest.Config.Digest.String())
|
logrus.Debugf("Fetching sigstore attachment config %s", ociManifest.Config.Digest.String())
|
||||||
// We don’t benefit from a real BlobInfoCache here because we never try to reuse/mount configs.
|
// We don’t benefit from a real BlobInfoCache here because we never try to reuse/mount configs.
|
||||||
|
3
vendor/github.com/containers/image/v5/docker/errors.go
generated
vendored
3
vendor/github.com/containers/image/v5/docker/errors.go
generated
vendored
@ -52,7 +52,8 @@ func registryHTTPResponseToError(res *http.Response) error {
|
|||||||
if len(response) > 50 {
|
if len(response) > 50 {
|
||||||
response = response[:50] + "..."
|
response = response[:50] + "..."
|
||||||
}
|
}
|
||||||
err = fmt.Errorf("StatusCode: %d, %s", e.StatusCode, response)
|
// %.0w makes e visible to error.Unwrap() without including any text
|
||||||
|
err = fmt.Errorf("StatusCode: %d, %s%.0w", e.StatusCode, response, e)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
4
vendor/github.com/containers/image/v5/version/version.go
generated
vendored
4
vendor/github.com/containers/image/v5/version/version.go
generated
vendored
@ -8,10 +8,10 @@ const (
|
|||||||
// VersionMinor is for functionality in a backwards-compatible manner
|
// VersionMinor is for functionality in a backwards-compatible manner
|
||||||
VersionMinor = 23
|
VersionMinor = 23
|
||||||
// VersionPatch is for backwards-compatible bug fixes
|
// VersionPatch is for backwards-compatible bug fixes
|
||||||
VersionPatch = 0
|
VersionPatch = 1
|
||||||
|
|
||||||
// VersionDev indicates development branch. Releases will be empty string.
|
// VersionDev indicates development branch. Releases will be empty string.
|
||||||
VersionDev = ""
|
VersionDev = "-dev"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version is the specification version that the package types support.
|
// Version is the specification version that the package types support.
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -55,7 +55,7 @@ github.com/containers/common/pkg/flag
|
|||||||
github.com/containers/common/pkg/report
|
github.com/containers/common/pkg/report
|
||||||
github.com/containers/common/pkg/report/camelcase
|
github.com/containers/common/pkg/report/camelcase
|
||||||
github.com/containers/common/pkg/retry
|
github.com/containers/common/pkg/retry
|
||||||
# github.com/containers/image/v5 v5.23.0
|
# github.com/containers/image/v5 v5.23.1-0.20221019201342-d92bac8cb807
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
github.com/containers/image/v5/copy
|
github.com/containers/image/v5/copy
|
||||||
github.com/containers/image/v5/directory
|
github.com/containers/image/v5/directory
|
||||||
|
Loading…
Reference in New Issue
Block a user