From 52f0cb6de68ce5cf25e1aadad62263f5315906ca Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 16 Apr 2023 11:17:37 +0200 Subject: [PATCH 1/3] update go to 1.20 Signed-off-by: CrazyMax --- .github/workflows/build.yml | 2 +- Dockerfile | 2 +- docker-bake.hcl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c181b29..201281b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ on: env: DESTDIR: ./bin - GO_VERSION: 1.18.5 + GO_VERSION: 1.20.3 jobs: validate: diff --git a/Dockerfile b/Dockerfile index b57a05d..7118b2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.18.5 +ARG GO_VERSION=1.20.3 ARG XX_VERSION=1.2.1 ARG OSXCROSS_VERSION=11.3-r7-debian ARG GOLANGCI_LINT_VERSION=v1.47.3 diff --git a/docker-bake.hcl b/docker-bake.hcl index 74c3097..f28ec46 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,5 +1,5 @@ variable "GO_VERSION" { - default = "1.18.5" + default = "1.20.3" } # Defines the output folder From e9656dd67fef4906dcf43a77fed8d50b42a716fb Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 16 Apr 2023 11:18:44 +0200 Subject: [PATCH 2/3] update golangci-lint to v1.51.1 Signed-off-by: CrazyMax --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7118b2a..4143271 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ARG GO_VERSION=1.20.3 ARG XX_VERSION=1.2.1 ARG OSXCROSS_VERSION=11.3-r7-debian -ARG GOLANGCI_LINT_VERSION=v1.47.3 +ARG GOLANGCI_LINT_VERSION=v1.51.1 ARG DEBIAN_FRONTEND=noninteractive ARG PACKAGE=github.com/docker/docker-credential-helpers From d5c91a2f5695ecbfa6ea07fe25f5b894e127bac5 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 16 Apr 2023 11:22:02 +0200 Subject: [PATCH 3/3] remove deprecated golangci-lint linters Linters 'deadcode', 'structcheck', 'varcheck' are deprecated since v1.49.0 and had been replaced by 'unused'. Signed-off-by: CrazyMax --- .golangci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 930e66a..902f7d5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,17 +6,14 @@ linters: enable: - gofmt - govet - - deadcode - depguard - goimports - ineffassign - misspell - unused - - varcheck - revive - staticcheck - typecheck - - structcheck disable-all: true linters-settings: