From b65252cd89bfc7949ff8d92a52f6ceacbbad8d10 Mon Sep 17 00:00:00 2001 From: cpanato Date: Fri, 1 Sep 2023 09:45:41 +0200 Subject: [PATCH 1/3] set minimum go version to 1.20 Signed-off-by: cpanato --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index a5d4ea1..67ffbb4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module sigs.k8s.io/release-utils -go 1.19 +go 1.20 require ( github.com/blang/semver/v4 v4.0.0 From 86492f0d97a2c67f0330d984f9712cc80022abd2 Mon Sep 17 00:00:00 2001 From: cpanato Date: Fri, 1 Sep 2023 09:47:03 +0200 Subject: [PATCH 2/3] bump cosign to v2.2.0 Signed-off-by: cpanato --- dependencies.yaml | 7 +++++++ mage/cosign.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dependencies.yaml b/dependencies.yaml index a278742..2ef2537 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -13,6 +13,13 @@ dependencies: - path: mage/ko.go match: defaultKoVersion\s+=\s+"(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?" + # cosign + - name: "cosign" + version: 2.2.0 + refPaths: + - path: mage/cosign.go + match: defaultCosignVersion\s+=\s+"v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?" + # k8s.io/repo-infra - name: "repo-infra" version: 0.2.5 diff --git a/mage/cosign.go b/mage/cosign.go index f879daa..36675c3 100644 --- a/mage/cosign.go +++ b/mage/cosign.go @@ -25,7 +25,7 @@ import ( "github.com/uwu-tools/magex/pkg/downloads" ) -const defaultCosignVersion = "v2.1.1" +const defaultCosignVersion = "v2.2.0" // EnsureCosign makes sure that the specified cosign version is available func EnsureCosign(version string) error { From 19113e6a2fc8b1429d6814837249ac747f993a5f Mon Sep 17 00:00:00 2001 From: cpanato Date: Fri, 1 Sep 2023 09:47:26 +0200 Subject: [PATCH 3/3] bump golangci-lint to v1.54.2 Signed-off-by: cpanato --- dependencies.yaml | 2 +- mage/golang.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dependencies.yaml b/dependencies.yaml index 2ef2537..c092c1c 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -1,7 +1,7 @@ dependencies: # golangci/golangci-lint - name: "golangci-lint" - version: 1.53.3 + version: 1.54.2 refPaths: - path: mage/golang.go match: defaultGolangCILintVersion\s+=\s+"v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?" diff --git a/mage/golang.go b/mage/golang.go index 1600c17..1a0fc5a 100644 --- a/mage/golang.go +++ b/mage/golang.go @@ -37,11 +37,11 @@ import ( const ( // golangci-lint - defaultGolangCILintVersion = "v1.53.3" + defaultGolangCILintVersion = "v1.54.2" golangciCmd = "golangci-lint" golangciConfig = ".golangci.yml" golangciURLBase = "https://raw.githubusercontent.com/golangci/golangci-lint" - defaultMinGoVersion = "1.19" + defaultMinGoVersion = "1.20" ) // Ensure golangci-lint is installed and on the PATH.