Skip to content

Commit 4e7127f

Browse files
authored
Merge pull request #615 from Luap99/containers-conf
common: port pkg/config to new configfile package
2 parents 0e2aefd + 4b84232 commit 4e7127f

21 files changed

Lines changed: 151 additions & 849 deletions

common/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ require (
4444
github.com/vishvananda/netlink v1.3.1
4545
go.etcd.io/bbolt v1.4.3
4646
go.podman.io/image/v5 v5.38.0
47-
go.podman.io/storage v1.61.0
47+
go.podman.io/storage v1.61.1-0.20260202154637-0e2aefda57c9
4848
golang.org/x/crypto v0.47.0
4949
golang.org/x/sync v0.19.0
5050
golang.org/x/sys v0.40.0
@@ -96,7 +96,7 @@ require (
9696
github.com/mattn/go-runewidth v0.0.19 // indirect
9797
github.com/mattn/go-sqlite3 v1.14.33 // indirect
9898
github.com/miekg/pkcs11 v1.1.1 // indirect
99-
github.com/mistifyio/go-zfs/v3 v3.1.0 // indirect
99+
github.com/mistifyio/go-zfs/v4 v4.0.0 // indirect
100100
github.com/moby/docker-image-spec v1.3.1 // indirect
101101
github.com/moby/sys/mountinfo v0.7.2 // indirect
102102
github.com/moby/sys/user v0.4.0 // indirect

common/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ github.com/mfridman/tparse v0.18.0 h1:wh6dzOKaIwkUGyKgOntDW4liXSo37qg5AXbIhkMV3v
166166
github.com/mfridman/tparse v0.18.0/go.mod h1:gEvqZTuCgEhPbYk/2lS3Kcxg1GmTxxU7kTC8DvP0i/A=
167167
github.com/miekg/pkcs11 v1.1.1 h1:Ugu9pdy6vAYku5DEpVWVFPYnzV+bxB+iRdbuFSu7TvU=
168168
github.com/miekg/pkcs11 v1.1.1/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs=
169-
github.com/mistifyio/go-zfs/v3 v3.1.0 h1:FZaylcg0hjUp27i23VcJJQiuBeAZjrC8lPqCGM1CopY=
170-
github.com/mistifyio/go-zfs/v3 v3.1.0/go.mod h1:CzVgeB0RvF2EGzQnytKVvVSDwmKJXxkOTUGbNrTja/k=
169+
github.com/mistifyio/go-zfs/v4 v4.0.0 h1:sU0+5dX45tdDK5xNZ3HBi95nxUc48FS92qbIZEvpAg4=
170+
github.com/mistifyio/go-zfs/v4 v4.0.0/go.mod h1:weotFtXTHvBwhr9Mv96KYnDkTPBOHFUbm9cBmQpesL0=
171171
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
172172
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
173173
github.com/moby/sys/atomicwriter v0.1.0 h1:kw5D/EqkBwsBFi0ss9v1VG3wIkVhzGvLklJ+w3A14Sw=
@@ -319,8 +319,8 @@ go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOV
319319
go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE=
320320
go.podman.io/image/v5 v5.38.0 h1:aUKrCANkPvze1bnhLJsaubcfz0d9v/bSDLnwsXJm6G4=
321321
go.podman.io/image/v5 v5.38.0/go.mod h1:hSIoIUzgBnmc4DjoIdzk63aloqVbD7QXDMkSE/cvG90=
322-
go.podman.io/storage v1.61.0 h1:5hD/oyRYt1f1gxgvect+8syZBQhGhV28dCw2+CZpx0Q=
323-
go.podman.io/storage v1.61.0/go.mod h1:A3UBK0XypjNZ6pghRhuxg62+2NIm5lcUGv/7XyMhMUI=
322+
go.podman.io/storage v1.61.1-0.20260202154637-0e2aefda57c9 h1:ab5KO2VjxG/VsARN5gBsQoCuQvJr1MYSYf50hpn1ROI=
323+
go.podman.io/storage v1.61.1-0.20260202154637-0e2aefda57c9/go.mod h1:yuLB1ikwsdGrGqSGBWv7fMbOeHupCaMn5iJ1biqxrpI=
324324
go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
325325
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
326326
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=

common/pkg/config/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import (
2121
)
2222

2323
const (
24-
// userOverrideContainersConfig holds the containers config path overridden by the rootless user.
25-
userOverrideContainersConfig = ".config/" + _configPath
2624
// Token prefix for looking for helper binary under $BINDIR.
2725
bindirPrefix = "$BINDIR"
2826
)

common/pkg/config/config_bsd.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
package config
44

55
const (
6-
// overrideContainersConfig holds the default config path overridden by the root user.
7-
overrideContainersConfig = "/usr/local/etc/" + _configPath
8-
9-
// defaultContainersConfig holds the default containers config path.
10-
defaultContainersConfig = "/usr/local/share/" + _configPath
11-
126
// DefaultSignaturePolicyPath is the default value for the
137
// policy.json file.
148
DefaultSignaturePolicyPath = "/usr/local/etc/containers/policy.json"

common/pkg/config/config_darwin.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
package config
22

33
const (
4-
// overrideContainersConfig holds the default config path overridden by the root user.
5-
overrideContainersConfig = "/etc/" + _configPath
6-
7-
// defaultContainersConfig holds the default containers config path.
8-
defaultContainersConfig = "/usr/share/" + _configPath
9-
104
// DefaultSignaturePolicyPath is the default value for the
115
// policy.json file.
126
DefaultSignaturePolicyPath = "/etc/containers/policy.json"

common/pkg/config/config_linux.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import (
66
)
77

88
const (
9-
// overrideContainersConfig holds the default config path overridden by the root user.
10-
overrideContainersConfig = "/etc/" + _configPath
11-
12-
// defaultContainersConfig holds the default containers config path.
13-
defaultContainersConfig = "/usr/share/" + _configPath
14-
159
// DefaultSignaturePolicyPath is the default value for the
1610
// policy.json file.
1711
DefaultSignaturePolicyPath = "/etc/containers/policy.json"

0 commit comments

Comments
 (0)