mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 19:05:32 +00:00
Merge pull request #2560 from containers/renovate/github.com-containers-common-0.x
fix(deps): update module github.com/containers/common to v0.62.3
This commit is contained in:
commit
610f30db60
4
go.mod
4
go.mod
@ -7,8 +7,8 @@ go 1.23.0
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Masterminds/semver/v3 v3.3.1
|
github.com/Masterminds/semver/v3 v3.3.1
|
||||||
github.com/containers/common v0.62.2
|
github.com/containers/common v0.62.3
|
||||||
github.com/containers/image/v5 v5.34.2
|
github.com/containers/image/v5 v5.34.3
|
||||||
github.com/containers/ocicrypt v1.2.1
|
github.com/containers/ocicrypt v1.2.1
|
||||||
github.com/containers/storage v1.57.2
|
github.com/containers/storage v1.57.2
|
||||||
github.com/docker/distribution v2.8.3+incompatible
|
github.com/docker/distribution v2.8.3+incompatible
|
||||||
|
8
go.sum
8
go.sum
@ -41,10 +41,10 @@ github.com/containerd/stargz-snapshotter/estargz v0.16.3 h1:7evrXtoh1mSbGj/pfRcc
|
|||||||
github.com/containerd/stargz-snapshotter/estargz v0.16.3/go.mod h1:uyr4BfYfOj3G9WBVE8cOlQmXAbPN9VEQpBBeJIuOipU=
|
github.com/containerd/stargz-snapshotter/estargz v0.16.3/go.mod h1:uyr4BfYfOj3G9WBVE8cOlQmXAbPN9VEQpBBeJIuOipU=
|
||||||
github.com/containerd/typeurl/v2 v2.2.3 h1:yNA/94zxWdvYACdYO8zofhrTVuQY73fFU1y++dYSw40=
|
github.com/containerd/typeurl/v2 v2.2.3 h1:yNA/94zxWdvYACdYO8zofhrTVuQY73fFU1y++dYSw40=
|
||||||
github.com/containerd/typeurl/v2 v2.2.3/go.mod h1:95ljDnPfD3bAbDJRugOiShd/DlAAsxGtUBhJxIn7SCk=
|
github.com/containerd/typeurl/v2 v2.2.3/go.mod h1:95ljDnPfD3bAbDJRugOiShd/DlAAsxGtUBhJxIn7SCk=
|
||||||
github.com/containers/common v0.62.2 h1:xO45OOoeq17EZMIDZoSyRqg7GXGcRHa9sXlrr75zH+U=
|
github.com/containers/common v0.62.3 h1:aOGryqXfW6aKBbHbqOveH7zB+ihavUN03X/2pUSvWFI=
|
||||||
github.com/containers/common v0.62.2/go.mod h1:veFiR9iq2j3CHXtB4YnPHuOkSRdhIQ3bAY8AFMP/5bE=
|
github.com/containers/common v0.62.3/go.mod h1:3R8kDox2prC9uj/a2hmXj/YjZz5sBEUNrcDiw51S0Lo=
|
||||||
github.com/containers/image/v5 v5.34.2 h1:3r1etun4uJYq5197tcymUcI1h6+zyzKS9PtRtBlEKMI=
|
github.com/containers/image/v5 v5.34.3 h1:/cMgfyA4Y7ILH7nzWP/kqpkE5Df35Ek4bp5ZPvJOVmI=
|
||||||
github.com/containers/image/v5 v5.34.2/go.mod h1:MG++slvQSZVq5ejAcLdu4APGsKGMb0YHHnAo7X28fdE=
|
github.com/containers/image/v5 v5.34.3/go.mod h1:MG++slvQSZVq5ejAcLdu4APGsKGMb0YHHnAo7X28fdE=
|
||||||
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 h1:Qzk5C6cYglewc+UyGf6lc8Mj2UaPTHy/iF2De0/77CA=
|
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 h1:Qzk5C6cYglewc+UyGf6lc8Mj2UaPTHy/iF2De0/77CA=
|
||||||
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
|
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
|
||||||
github.com/containers/ocicrypt v1.2.1 h1:0qIOTT9DoYwcKmxSt8QJt+VzMY18onl9jUXsxpVhSmM=
|
github.com/containers/ocicrypt v1.2.1 h1:0qIOTT9DoYwcKmxSt8QJt+VzMY18onl9jUXsxpVhSmM=
|
||||||
|
61
vendor/github.com/containers/image/v5/tarball/tarball_src.go
generated
vendored
61
vendor/github.com/containers/image/v5/tarball/tarball_src.go
generated
vendored
@ -14,8 +14,9 @@ import (
|
|||||||
|
|
||||||
"github.com/containers/image/v5/internal/imagesource/impl"
|
"github.com/containers/image/v5/internal/imagesource/impl"
|
||||||
"github.com/containers/image/v5/internal/imagesource/stubs"
|
"github.com/containers/image/v5/internal/imagesource/stubs"
|
||||||
|
"github.com/containers/image/v5/pkg/compression"
|
||||||
|
compressionTypes "github.com/containers/image/v5/pkg/compression/types"
|
||||||
"github.com/containers/image/v5/types"
|
"github.com/containers/image/v5/types"
|
||||||
"github.com/klauspost/pgzip"
|
|
||||||
digest "github.com/opencontainers/go-digest"
|
digest "github.com/opencontainers/go-digest"
|
||||||
imgspecs "github.com/opencontainers/image-spec/specs-go"
|
imgspecs "github.com/opencontainers/image-spec/specs-go"
|
||||||
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
@ -82,31 +83,47 @@ func (r *tarballReference) NewImageSource(ctx context.Context, sys *types.System
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default to assuming the layer is compressed.
|
|
||||||
layerType := imgspecv1.MediaTypeImageLayerGzip
|
|
||||||
|
|
||||||
// Set up to digest the file as it is.
|
// Set up to digest the file as it is.
|
||||||
blobIDdigester := digest.Canonical.Digester()
|
blobIDdigester := digest.Canonical.Digester()
|
||||||
reader = io.TeeReader(reader, blobIDdigester.Hash())
|
reader = io.TeeReader(reader, blobIDdigester.Hash())
|
||||||
|
|
||||||
// Set up to digest the file after we maybe decompress it.
|
var layerType string
|
||||||
diffIDdigester := digest.Canonical.Digester()
|
var diffIDdigester digest.Digester
|
||||||
uncompressed, err := pgzip.NewReader(reader)
|
// If necessary, digest the file after we decompress it.
|
||||||
if err == nil {
|
if err := func() error { // A scope for defer
|
||||||
// It is compressed, so the diffID is the digest of the uncompressed version
|
format, decompressor, reader, err := compression.DetectCompressionFormat(reader)
|
||||||
reader = io.TeeReader(uncompressed, diffIDdigester.Hash())
|
if err != nil {
|
||||||
} else {
|
return err
|
||||||
// It is not compressed, so the diffID and the blobID are going to be the same
|
}
|
||||||
diffIDdigester = blobIDdigester
|
if decompressor != nil {
|
||||||
layerType = imgspecv1.MediaTypeImageLayer
|
uncompressed, err := decompressor(reader)
|
||||||
uncompressed = nil
|
if err != nil {
|
||||||
}
|
return err
|
||||||
// TODO: This can take quite some time, and should ideally be cancellable using ctx.Done().
|
}
|
||||||
if _, err := io.Copy(io.Discard, reader); err != nil {
|
defer uncompressed.Close()
|
||||||
return nil, fmt.Errorf("error reading %q: %w", filename, err)
|
// It is compressed, so the diffID is the digest of the uncompressed version
|
||||||
}
|
diffIDdigester = digest.Canonical.Digester()
|
||||||
if uncompressed != nil {
|
reader = io.TeeReader(uncompressed, diffIDdigester.Hash())
|
||||||
uncompressed.Close()
|
switch format.Name() {
|
||||||
|
case compressionTypes.GzipAlgorithmName:
|
||||||
|
layerType = imgspecv1.MediaTypeImageLayerGzip
|
||||||
|
case compressionTypes.ZstdAlgorithmName:
|
||||||
|
layerType = imgspecv1.MediaTypeImageLayerZstd
|
||||||
|
default: // This is incorrect, but we have no good options, and it is what this transport was historically doing.
|
||||||
|
layerType = imgspecv1.MediaTypeImageLayerGzip
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// It is not compressed, so the diffID and the blobID are going to be the same
|
||||||
|
diffIDdigester = blobIDdigester
|
||||||
|
layerType = imgspecv1.MediaTypeImageLayer
|
||||||
|
}
|
||||||
|
// TODO: This can take quite some time, and should ideally be cancellable using ctx.Done().
|
||||||
|
if _, err := io.Copy(io.Discard, reader); err != nil {
|
||||||
|
return fmt.Errorf("error reading %q: %w", filename, err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grab our uncompressed and possibly-compressed digests and sizes.
|
// Grab our uncompressed and possibly-compressed digests and sizes.
|
||||||
|
2
vendor/github.com/containers/image/v5/version/version.go
generated
vendored
2
vendor/github.com/containers/image/v5/version/version.go
generated
vendored
@ -8,7 +8,7 @@ const (
|
|||||||
// VersionMinor is for functionality in a backwards-compatible manner
|
// VersionMinor is for functionality in a backwards-compatible manner
|
||||||
VersionMinor = 34
|
VersionMinor = 34
|
||||||
// VersionPatch is for backwards-compatible bug fixes
|
// VersionPatch is for backwards-compatible bug fixes
|
||||||
VersionPatch = 2
|
VersionPatch = 3
|
||||||
|
|
||||||
// VersionDev indicates development branch. Releases will be empty string.
|
// VersionDev indicates development branch. Releases will be empty string.
|
||||||
VersionDev = ""
|
VersionDev = ""
|
||||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -71,7 +71,7 @@ github.com/containerd/stargz-snapshotter/estargz/errorutil
|
|||||||
# github.com/containerd/typeurl/v2 v2.2.3
|
# github.com/containerd/typeurl/v2 v2.2.3
|
||||||
## explicit; go 1.21
|
## explicit; go 1.21
|
||||||
github.com/containerd/typeurl/v2
|
github.com/containerd/typeurl/v2
|
||||||
# github.com/containers/common v0.62.2
|
# github.com/containers/common v0.62.3
|
||||||
## explicit; go 1.22.8
|
## explicit; go 1.22.8
|
||||||
github.com/containers/common/pkg/auth
|
github.com/containers/common/pkg/auth
|
||||||
github.com/containers/common/pkg/capabilities
|
github.com/containers/common/pkg/capabilities
|
||||||
@ -81,7 +81,7 @@ github.com/containers/common/pkg/password
|
|||||||
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.34.2
|
# github.com/containers/image/v5 v5.34.3
|
||||||
## explicit; go 1.22.8
|
## explicit; go 1.22.8
|
||||||
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