From ef8a7a5e6aec87a0f41eff081266a0e7b7fb6afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Tue, 23 Jan 2024 21:39:42 +0100 Subject: [PATCH 1/4] Use a stable Skopeo branch for testing the stable c/image branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... to avoid breakage on incompatible dependency updates, like https://cirrus-ci.com/build/5613830407979008 . Signed-off-by: Miloslav Trmač --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index bac8d525a..e1bd7ad4e 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -8,7 +8,7 @@ env: # Name of the ultimate destination branch for this CI run DEST_BRANCH: "release-5.29" # c/skopeo branch name which must work with this c/image branch - SKOPEO_CI_BRANCH: "main" + SKOPEO_CI_BRANCH: "release-1.14" # Use GO module mirror (reason unknown, travis did it this way) GOPROXY: https://proxy.golang.org # Overrides default location (/tmp/cirrus) for repo clone From 6cbd4f4f983a43dd869d696e53ab8ebe7cc5bec7 Mon Sep 17 00:00:00 2001 From: tomsweeneyredhat Date: Tue, 30 Jan 2024 18:14:16 -0500 Subject: [PATCH 2/4] [release-5.29] backport Docker Daemon fix #2260 Backport the fix from main for #2260 to allow for the lastest Docker Daemons to work with c/image. Signed-off-by: tomsweeneyredhat --- docker/daemon/client.go | 7 +------ docker/daemon/client_test.go | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/docker/daemon/client.go b/docker/daemon/client.go index 2c245f54f..354af2140 100644 --- a/docker/daemon/client.go +++ b/docker/daemon/client.go @@ -9,11 +9,6 @@ import ( "github.com/docker/go-connections/tlsconfig" ) -const ( - // The default API version to be used in case none is explicitly specified - defaultAPIVersion = "1.22" -) - // NewDockerClient initializes a new API client based on the passed SystemContext. func newDockerClient(sys *types.SystemContext) (*dockerclient.Client, error) { host := dockerclient.DefaultDockerHost @@ -23,7 +18,7 @@ func newDockerClient(sys *types.SystemContext) (*dockerclient.Client, error) { opts := []dockerclient.Opt{ dockerclient.WithHost(host), - dockerclient.WithVersion(defaultAPIVersion), + dockerclient.WithAPIVersionNegotiation(), } // We conditionalize building the TLS configuration only to TLS sockets: diff --git a/docker/daemon/client_test.go b/docker/daemon/client_test.go index 161747f75..021e24d13 100644 --- a/docker/daemon/client_test.go +++ b/docker/daemon/client_test.go @@ -18,7 +18,6 @@ func TestDockerClientFromNilSystemContext(t *testing.T) { assert.NotNil(t, client, "A Docker client reference should have been returned") assert.Equal(t, dockerclient.DefaultDockerHost, client.DaemonHost(), "The default docker host should have been used") - assert.Equal(t, defaultAPIVersion, client.ClientVersion(), "The default api version should have been used") assert.NoError(t, client.Close()) } @@ -39,7 +38,6 @@ func TestDockerClientFromCertContext(t *testing.T) { assert.NotNil(t, client, "A Docker client reference should have been returned") assert.Equal(t, host, client.DaemonHost()) - assert.Equal(t, "1.22", client.ClientVersion()) assert.NoError(t, client.Close()) } From b799d82b5ce4e03321c35dde4d76a2aad5630596 Mon Sep 17 00:00:00 2001 From: tomsweeneyredhat Date: Tue, 30 Jan 2024 18:22:26 -0500 Subject: [PATCH 3/4] [release-5.29] Bump to v5.29.2 As the title says. Bumping to 5.29.2 to get the Docker Daemon Fix in. [NO NEW TESTS NEEDED] Signed-off-by: tomsweeneyredhat --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index 00d67999d..b24ee881a 100644 --- a/version/version.go +++ b/version/version.go @@ -11,7 +11,7 @@ const ( VersionPatch = 2 // VersionDev indicates development branch. Releases will be empty string. - VersionDev = "-dev" + VersionDev = "" ) // Version is the specification version that the package types support. From 0111e79255a349e606dbcb0cbd374df7474e62be Mon Sep 17 00:00:00 2001 From: tomsweeneyredhat Date: Tue, 30 Jan 2024 18:23:34 -0500 Subject: [PATCH 4/4] [release-5.29] Bump to v5.29.3-dev As the title says. Bumping to v5.29.3-dev for further development. [NO NEW TESTS NEEDED] Signed-off-by: tomsweeneyredhat --- version/version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version/version.go b/version/version.go index b24ee881a..d37e28ddc 100644 --- a/version/version.go +++ b/version/version.go @@ -8,10 +8,10 @@ const ( // VersionMinor is for functionality in a backwards-compatible manner VersionMinor = 29 // VersionPatch is for backwards-compatible bug fixes - VersionPatch = 2 + VersionPatch = 3 // VersionDev indicates development branch. Releases will be empty string. - VersionDev = "" + VersionDev = "-dev" ) // Version is the specification version that the package types support.