Skip to content

Commit 36d2e30

Browse files
committed
vendor: update c/{image,storage}
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 37f046e commit 36d2e30

File tree

16 files changed

+202
-247
lines changed

16 files changed

+202
-247
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require (
77
github.com/containerd/containerd v1.7.9
88
github.com/containernetworking/cni v1.1.2
99
github.com/containernetworking/plugins v1.3.0
10-
github.com/containers/image/v5 v5.29.0
10+
github.com/containers/image/v5 v5.29.1-0.20231120202631-293b00ba7166
1111
github.com/containers/ocicrypt v1.1.9
12-
github.com/containers/storage v1.51.0
12+
github.com/containers/storage v1.51.1-0.20231120144510-2cf61989a5bc
1313
github.com/coreos/go-systemd/v22 v22.5.0
1414
github.com/cyphar/filepath-securejoin v0.2.4
1515
github.com/davecgh/go-spew v1.1.1

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ github.com/containernetworking/cni v1.1.2 h1:wtRGZVv7olUHMOqouPpn3cXJWpJgM6+EUl3
5050
github.com/containernetworking/cni v1.1.2/go.mod h1:sDpYKmGVENF3s6uvMvGgldDWeG8dMxakj/u+i9ht9vw=
5151
github.com/containernetworking/plugins v1.3.0 h1:QVNXMT6XloyMUoO2wUOqWTC1hWFV62Q6mVDp5H1HnjM=
5252
github.com/containernetworking/plugins v1.3.0/go.mod h1:Pc2wcedTQQCVuROOOaLBPPxrEXqqXBFt3cZ+/yVg6l0=
53-
github.com/containers/image/v5 v5.29.0 h1:9+nhS/ZM7c4Kuzu5tJ0NMpxrgoryOJ2HAYTgG8Ny7j4=
54-
github.com/containers/image/v5 v5.29.0/go.mod h1:kQ7qcDsps424ZAz24thD+x7+dJw1vgur3A9tTDsj97E=
53+
github.com/containers/image/v5 v5.29.1-0.20231120202631-293b00ba7166 h1:Dz4ryT8VDKn6U+oWPtsihAV2eG7uFc+LYS7UjHjLcwk=
54+
github.com/containers/image/v5 v5.29.1-0.20231120202631-293b00ba7166/go.mod h1:0uOgAiVgmF8+VCXltRYmncWjkDYc+jFma49NKNz0cS4=
5555
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 h1:Qzk5C6cYglewc+UyGf6lc8Mj2UaPTHy/iF2De0/77CA=
5656
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
5757
github.com/containers/ocicrypt v1.1.9 h1:2Csfba4jse85Raxk5HIyEk8OwZNjRvfkhEGijOjIdEM=
5858
github.com/containers/ocicrypt v1.1.9/go.mod h1:dTKx1918d8TDkxXvarscpNVY+lyPakPNFN4jwA9GBys=
59-
github.com/containers/storage v1.51.0 h1:AowbcpiWXzAjHosKz7MKvPEqpyX+ryZA/ZurytRrFNA=
60-
github.com/containers/storage v1.51.0/go.mod h1:ybl8a3j1PPtpyaEi/5A6TOFs+5TrEyObeKJzVtkUlfc=
59+
github.com/containers/storage v1.51.1-0.20231120144510-2cf61989a5bc h1:K+fKkKkqwwY3YYM+RejJ6OcbCRZfDRZLoKsMMBAT2Bw=
60+
github.com/containers/storage v1.51.1-0.20231120144510-2cf61989a5bc/go.mod h1:oz9n9uia9xtxDQhw7nnlpMID5YKbHmMZsVFy4rR+5+s=
6161
github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=
6262
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
6363
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=

pkg/config/default.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ func defaultConfig() (*Config, error) {
196196
}
197197

198198
defaultEngineConfig.SignaturePolicyPath = DefaultSignaturePolicyPath
199-
if useUserConfigLocations() {
199+
// NOTE: For now we want Windows to use system locations.
200+
// GetRootlessUID == -1 on Windows, so exclude negative range
201+
if unshare.GetRootlessUID() > 0 {
200202
configHome, err := homedir.GetConfigHome()
201203
if err != nil {
202204
return nil, err
@@ -320,7 +322,7 @@ func defaultEngineConfig() (*EngineConfig, error) {
320322
return nil, err
321323
}
322324
}
323-
storeOpts, err := types.DefaultStoreOptions(useUserConfigLocations(), unshare.GetRootlessUID())
325+
storeOpts, err := types.DefaultStoreOptions()
324326
if err != nil {
325327
return nil, err
326328
}
@@ -480,7 +482,10 @@ func defaultEngineConfig() (*EngineConfig, error) {
480482
}
481483

482484
func defaultTmpDir() (string, error) {
483-
if !useUserConfigLocations() {
485+
// NOTE: For now we want Windows to use system locations.
486+
// GetRootlessUID == -1 on Windows, so exclude negative range
487+
rootless := unshare.GetRootlessUID() > 0
488+
if !rootless {
484489
return getLibpodTmpDir(), nil
485490
}
486491

@@ -669,12 +674,6 @@ func getDefaultSSHConfig() string {
669674
return filepath.Join(dirname, ".ssh", "config")
670675
}
671676

672-
func useUserConfigLocations() bool {
673-
// NOTE: For now we want Windows to use system locations.
674-
// GetRootlessUID == -1 on Windows, so exclude negative range
675-
return unshare.GetRootlessUID() > 0
676-
}
677-
678677
// getDefaultImage returns the default machine image stream
679678
// On Windows this refers to the Fedora major release number
680679
func getDefaultMachineImage() string {

vendor/github.com/containers/image/v5/storage/storage_transport.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/image/v5/version/version.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/.cirrus.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/VERSION

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/pkg/chunked/storage_linux.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/pkg/homedir/homedir.go

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/pkg/homedir/homedir_others.go

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/pkg/homedir/homedir_unix.go

Lines changed: 97 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containers/storage/store.go

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)