Skip to content

Commit b942d6e

Browse files
committed
migrate containers libs to new mono-repo
Ref: https://blog.podman.io/2025/08/upcoming-migration-of-three-containers-repositories-to-monorepo/ Signed-off-by: Anik Bhattacharjee <[email protected]>
1 parent 47dee8d commit b942d6e

File tree

6 files changed

+28
-22
lines changed

6 files changed

+28
-22
lines changed

go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ require (
3535
github.com/stretchr/testify v1.11.1
3636
github.com/tidwall/btree v1.8.1
3737
go.etcd.io/bbolt v1.4.3
38+
go.podman.io/image/v5 v5.37.0
3839
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
3940
golang.org/x/mod v0.28.0
4041
golang.org/x/net v0.44.0
@@ -89,7 +90,7 @@ require (
8990
github.com/docker/distribution v2.8.3+incompatible // indirect
9091
github.com/docker/docker v28.3.3+incompatible // indirect
9192
github.com/docker/docker-credential-helpers v0.9.3 // indirect
92-
github.com/docker/go-connections v0.5.0 // indirect
93+
github.com/docker/go-connections v0.6.0 // indirect
9394
github.com/docker/go-events v0.0.0-20250114142523-c867878c5e32 // indirect
9495
github.com/docker/go-metrics v0.0.1 // indirect
9596
github.com/docker/go-units v0.5.0 // indirect
@@ -150,7 +151,7 @@ require (
150151
github.com/otiai10/mint v1.6.3 // indirect
151152
github.com/pelletier/go-toml v1.9.5 // indirect
152153
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
153-
github.com/proglottis/gpgme v0.1.4 // indirect
154+
github.com/proglottis/gpgme v0.1.5 // indirect
154155
github.com/prometheus/client_golang v1.22.0 // indirect
155156
github.com/prometheus/client_model v0.6.2 // indirect
156157
github.com/prometheus/common v0.65.0 // indirect
@@ -160,7 +161,7 @@ require (
160161
github.com/redis/go-redis/v9 v9.10.0 // indirect
161162
github.com/rivo/uniseg v0.4.7 // indirect
162163
github.com/russross/blackfriday/v2 v2.1.0 // indirect
163-
github.com/secure-systems-lab/go-securesystemslib v0.9.0 // indirect
164+
github.com/secure-systems-lab/go-securesystemslib v0.9.1 // indirect
164165
github.com/sigstore/fulcio v1.7.1 // indirect
165166
github.com/sigstore/protobuf-specs v0.4.3 // indirect
166167
github.com/sigstore/sigstore v1.9.5 // indirect
@@ -198,6 +199,7 @@ require (
198199
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
199200
go.opentelemetry.io/otel/trace v1.37.0 // indirect
200201
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
202+
go.podman.io/storage v1.60.0 // indirect
201203
go.uber.org/automaxprocs v1.6.0 // indirect
202204
go.yaml.in/yaml/v2 v2.4.2 // indirect
203205
go.yaml.in/yaml/v3 v3.0.4 // indirect

go.sum

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ github.com/docker/docker v28.3.3+incompatible h1:Dypm25kh4rmk49v1eiVbsAtpAsYURjY
106106
github.com/docker/docker v28.3.3+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
107107
github.com/docker/docker-credential-helpers v0.9.3 h1:gAm/VtF9wgqJMoxzT3Gj5p4AqIjCBS4wrsOh9yRqcz8=
108108
github.com/docker/docker-credential-helpers v0.9.3/go.mod h1:x+4Gbw9aGmChi3qTLZj8Dfn0TD20M/fuWy0E5+WDeCo=
109-
github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c=
110-
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
109+
github.com/docker/go-connections v0.6.0 h1:LlMG9azAe1TqfR7sO+NJttz1gy6KO7VJBh+pMmjSD94=
110+
github.com/docker/go-connections v0.6.0/go.mod h1:AahvXYshr6JgfUJGdDCs2b5EZG/vmaMAntpSFH5BFKE=
111111
github.com/docker/go-events v0.0.0-20250114142523-c867878c5e32 h1:EHZfspsnLAz8Hzccd67D5abwLiqoqym2jz/jOS39mCk=
112112
github.com/docker/go-events v0.0.0-20250114142523-c867878c5e32/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA=
113113
github.com/docker/go-metrics v0.0.1 h1:AgB/0SvBxihN0X8OR4SjsblXkbMvalQ8cjmtKQ2rQV8=
@@ -335,8 +335,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
335335
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
336336
github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=
337337
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
338-
github.com/proglottis/gpgme v0.1.4 h1:3nE7YNA70o2aLjcg63tXMOhPD7bplfE5CBdV+hLAm2M=
339-
github.com/proglottis/gpgme v0.1.4/go.mod h1:5LoXMgpE4bttgwwdv9bLs/vwqv3qV7F4glEEZ7mRKrM=
338+
github.com/proglottis/gpgme v0.1.5 h1:KCGyOw8sQ+SI96j6G8D8YkOGn+1TwbQTT9/zQXoVlz0=
339+
github.com/proglottis/gpgme v0.1.5/go.mod h1:5LoXMgpE4bttgwwdv9bLs/vwqv3qV7F4glEEZ7mRKrM=
340340
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
341341
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
342342
github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g=
@@ -373,8 +373,8 @@ github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEV
373373
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
374374
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
375375
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
376-
github.com/secure-systems-lab/go-securesystemslib v0.9.0 h1:rf1HIbL64nUpEIZnjLZ3mcNEL9NBPB0iuVjyxvq3LZc=
377-
github.com/secure-systems-lab/go-securesystemslib v0.9.0/go.mod h1:DVHKMcZ+V4/woA/peqr+L0joiRXbPpQ042GgJckkFgw=
376+
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=
377+
github.com/secure-systems-lab/go-securesystemslib v0.9.1/go.mod h1:np53YzT0zXGMv6x4iEWc9Z59uR+x+ndLwCLqPYpLXVU=
378378
github.com/sigstore/fulcio v1.7.1 h1:RcoW20Nz49IGeZyu3y9QYhyyV3ZKQ85T+FXPKkvE+aQ=
379379
github.com/sigstore/fulcio v1.7.1/go.mod h1:7lYY+hsd8Dt+IvKQRC+KEhWpCZ/GlmNvwIa5JhypMS8=
380380
github.com/sigstore/protobuf-specs v0.4.3 h1:kRgJ+ciznipH9xhrkAbAEHuuxD3GhYnGC873gZpjJT4=
@@ -489,6 +489,10 @@ go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mx
489489
go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0=
490490
go.opentelemetry.io/proto/otlp v1.7.0 h1:jX1VolD6nHuFzOYso2E73H85i92Mv8JQYk0K9vz09os=
491491
go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo=
492+
go.podman.io/image/v5 v5.37.0 h1:yzgQybwuWIIeK63hu+mQqna/wOh96XD5cpVc6j8Dg5M=
493+
go.podman.io/image/v5 v5.37.0/go.mod h1:+s2Sx5dia/jVeT8tI3r2NAPrARMiDdbEq3QPIQogx3I=
494+
go.podman.io/storage v1.60.0 h1:bWNSrR58nxg39VNFDSx3m0AswbvyzPGOo5XsUfomTao=
495+
go.podman.io/storage v1.60.0/go.mod h1:NK+rsWJVuQeCM7ifv7cxD3abegWxwtW/3OkuSUJJoE4=
492496
go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=
493497
go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=
494498
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=

pkg/image/buildahregistry/_registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/containers/buildah"
12-
"github.com/containers/image/v5/types"
12+
"go.podman.io/image/v5/types"
1313
"github.com/containers/storage"
1414
"github.com/sirupsen/logrus"
1515

pkg/image/containerdregistry/resolver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"github.com/containerd/containerd/remotes"
99
"github.com/containerd/containerd/remotes/docker"
1010
"github.com/containers/common/pkg/auth"
11-
"github.com/containers/image/v5/pkg/docker/config"
12-
"github.com/containers/image/v5/types"
1311
dockerconfig "github.com/docker/cli/cli/config"
12+
"go.podman.io/image/v5/pkg/docker/config"
13+
"go.podman.io/image/v5/types"
1414
)
1515

1616
func NewResolver(client *http.Client, configDir string, plainHTTP bool, repo string) (remotes.Resolver, error) {

pkg/image/containersimageregistry/registry.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99

1010
"github.com/containerd/containerd/archive"
1111
"github.com/containers/common/pkg/auth"
12-
"github.com/containers/image/v5/copy"
13-
"github.com/containers/image/v5/docker"
14-
"github.com/containers/image/v5/docker/reference"
15-
"github.com/containers/image/v5/image"
16-
"github.com/containers/image/v5/oci/layout"
17-
"github.com/containers/image/v5/pkg/compression"
18-
"github.com/containers/image/v5/pkg/docker/config"
19-
"github.com/containers/image/v5/signature"
20-
"github.com/containers/image/v5/types"
12+
"go.podman.io/image/v5/copy"
13+
"go.podman.io/image/v5/docker"
14+
"go.podman.io/image/v5/docker/reference"
15+
"go.podman.io/image/v5/image"
16+
"go.podman.io/image/v5/oci/layout"
17+
"go.podman.io/image/v5/pkg/compression"
18+
"go.podman.io/image/v5/pkg/docker/config"
2119
dockerconfig "github.com/docker/cli/cli/config"
20+
"go.podman.io/image/v5/signature"
21+
"go.podman.io/image/v5/types"
2222
"oras.land/oras-go/v2/content/oci"
2323

2424
orimage "github.com/operator-framework/operator-registry/pkg/image"

pkg/image/registry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import (
1717
"sync"
1818
"testing"
1919

20-
"github.com/containers/image/v5/types"
2120
"github.com/distribution/distribution/v3"
2221
"github.com/distribution/reference"
2322
"github.com/opencontainers/go-digest"
2423
"github.com/sirupsen/logrus"
2524
"github.com/stretchr/testify/require"
25+
"go.podman.io/image/v5/types"
2626
"golang.org/x/mod/sumdb/dirhash"
2727

2828
libimage "github.com/operator-framework/operator-registry/internal/testutil/image"

0 commit comments

Comments
 (0)