diff --git a/.github/workflows/.test.yml b/.github/workflows/.test.yml index 3b6d229f5263..17034affc706 100644 --- a/.github/workflows/.test.yml +++ b/.github/workflows/.test.yml @@ -27,7 +27,7 @@ on: type: string env: - GO_VERSION: "1.22" + GO_VERSION: "1.23" SETUP_BUILDX_VERSION: "latest" SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" diff --git a/.github/workflows/buildkit.yml b/.github/workflows/buildkit.yml index 607c44aa28f5..14acafa57bf7 100644 --- a/.github/workflows/buildkit.yml +++ b/.github/workflows/buildkit.yml @@ -21,7 +21,7 @@ on: - 'frontend/dockerfile/docs/**' env: - GO_VERSION: "1.22" + GO_VERSION: "1.23" SETUP_BUILDX_VERSION: "latest" SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" SCOUT_VERSION: "1.13.0" diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index bb86ac15a0ab..ed06c0bd9aac 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -19,7 +19,7 @@ on: - 'frontend/dockerfile/docs/**' env: - GO_VERSION: "1.22" + GO_VERSION: "1.23" SETUP_BUILDX_VERSION: "latest" SETUP_BUILDKIT_TAG: "moby/buildkit:latest" SCOUT_VERSION: "1.13.0" diff --git a/.github/workflows/test-os.yml b/.github/workflows/test-os.yml index 691e7f948751..0259ac37493a 100644 --- a/.github/workflows/test-os.yml +++ b/.github/workflows/test-os.yml @@ -19,7 +19,7 @@ on: - 'frontend/dockerfile/docs/**' env: - GO_VERSION: "1.22" + GO_VERSION: "1.23" SETUP_BUILDX_VERSION: "latest" SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" DESTDIR: "./bin" diff --git a/.golangci.yml b/.golangci.yml index 63ef230916a2..e4823ed85cb2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,9 @@ run: timeout: 30m - modules-download-mode: vendor + # default uses Go version from the go.mod file, fallback on the env var + # `GOVERSION`, fallback on 1.17: https://golangci-lint.run/usage/configuration/#run-configuration + go: "1.23" linters: enable: diff --git a/Dockerfile b/Dockerfile index 9f1440da8b29..e18057683835 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,9 @@ ARG MINIO_VERSION=RELEASE.2022-05-03T20-36-08Z ARG MINIO_MC_VERSION=RELEASE.2022-05-04T06-07-55Z ARG AZURITE_VERSION=3.18.0 ARG GOTESTSUM_VERSION=v1.9.0 -ARG DELVE_VERSION=v1.22.1 +ARG DELVE_VERSION=v1.23.1 -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG ALPINE_VERSION=3.20 ARG XX_VERSION=1.5.0 ARG BUILDKIT_DEBUG diff --git a/examples/buildkit0/buildkit.go b/examples/buildkit0/buildkit.go index e263bd2a78e4..2530d660ed9c 100644 --- a/examples/buildkit0/buildkit.go +++ b/examples/buildkit0/buildkit.go @@ -33,7 +33,7 @@ func main() { } func goBuildBase() llb.State { - goAlpine := llb.Image("docker.io/library/golang:1.22-alpine") + goAlpine := llb.Image("docker.io/library/golang:1.23-alpine") return goAlpine. AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix). AddEnv("GOPATH", "/go"). diff --git a/examples/buildkit1/buildkit.go b/examples/buildkit1/buildkit.go index 01298c343d76..de723f677c0c 100644 --- a/examples/buildkit1/buildkit.go +++ b/examples/buildkit1/buildkit.go @@ -33,7 +33,7 @@ func main() { } func goBuildBase() llb.State { - goAlpine := llb.Image("docker.io/library/golang:1.22-alpine") + goAlpine := llb.Image("docker.io/library/golang:1.23-alpine") return goAlpine. AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix). AddEnv("GOPATH", "/go"). diff --git a/examples/buildkit2/buildkit.go b/examples/buildkit2/buildkit.go index 2fab37bf07ff..afa1536d2b95 100644 --- a/examples/buildkit2/buildkit.go +++ b/examples/buildkit2/buildkit.go @@ -33,7 +33,7 @@ func main() { } func goBuildBase() llb.State { - goAlpine := llb.Image("docker.io/library/golang:1.22-alpine") + goAlpine := llb.Image("docker.io/library/golang:1.23-alpine") return goAlpine. AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix). AddEnv("GOPATH", "/go"). diff --git a/examples/buildkit3/buildkit.go b/examples/buildkit3/buildkit.go index 65bc74469728..001e166e0b16 100644 --- a/examples/buildkit3/buildkit.go +++ b/examples/buildkit3/buildkit.go @@ -34,7 +34,7 @@ func main() { } func goBuildBase() llb.State { - goAlpine := llb.Image("docker.io/library/golang:1.22-alpine") + goAlpine := llb.Image("docker.io/library/golang:1.23-alpine") return goAlpine. AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix). AddEnv("GOPATH", "/go"). diff --git a/examples/buildkit4/buildkit.go b/examples/buildkit4/buildkit.go index 8249b62cf456..724c96e26508 100644 --- a/examples/buildkit4/buildkit.go +++ b/examples/buildkit4/buildkit.go @@ -37,7 +37,7 @@ func main() { } func goBuildBase() llb.State { - goAlpine := llb.Image("docker.io/library/golang:1.22-alpine") + goAlpine := llb.Image("docker.io/library/golang:1.23-alpine") return goAlpine. AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix). AddEnv("GOPATH", "/go"). diff --git a/examples/nested-llb/main.go b/examples/nested-llb/main.go index 230728ea8801..c9c98c622dda 100644 --- a/examples/nested-llb/main.go +++ b/examples/nested-llb/main.go @@ -32,7 +32,7 @@ func main() { } func goBuildBase() llb.State { - goAlpine := llb.Image("docker.io/library/golang:1.22-alpine") + goAlpine := llb.Image("docker.io/library/golang:1.23-alpine") return goAlpine. AddEnv("PATH", "/usr/local/go/bin:"+system.DefaultPathEnvUnix). AddEnv("GOPATH", "/go"). diff --git a/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile b/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile index d8a5d29dc7d5..768ecb9f7cf3 100644 --- a/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile +++ b/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile-upstream:master -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG ALPINE_VERSION=3.20 ARG XX_VERSION=1.5.0 diff --git a/hack/dockerfiles/archutil.Dockerfile b/hack/dockerfiles/archutil.Dockerfile index 878afb183b9f..114e86d474c9 100644 --- a/hack/dockerfiles/archutil.Dockerfile +++ b/hack/dockerfiles/archutil.Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile-upstream:master # check=error=true -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG ALPINE_VERSION=3.20 ARG DEBIAN_VERSION=trixie diff --git a/hack/dockerfiles/docs-dockerfile.Dockerfile b/hack/dockerfiles/docs-dockerfile.Dockerfile index e16050135940..f939d262aebb 100644 --- a/hack/dockerfiles/docs-dockerfile.Dockerfile +++ b/hack/dockerfiles/docs-dockerfile.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG ALPINE_VERSION=3.20 FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest diff --git a/hack/dockerfiles/docs.Dockerfile b/hack/dockerfiles/docs.Dockerfile index bc3447bbee9d..7b7f8c22a3a4 100644 --- a/hack/dockerfiles/docs.Dockerfile +++ b/hack/dockerfiles/docs.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG ALPINE_VERSION=3.20 FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest diff --git a/hack/dockerfiles/generated-files.Dockerfile b/hack/dockerfiles/generated-files.Dockerfile index 45f8aecbf2c9..b3cf3703b6e3 100644 --- a/hack/dockerfiles/generated-files.Dockerfile +++ b/hack/dockerfiles/generated-files.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile-upstream:master -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG DEBIAN_VERSION=bookworm ARG PROTOC_VERSION=3.11.4 ARG PROTOC_GOOGLEAPIS_VERSION=2af421884dd468d565137215c946ebe4e245ae26 diff --git a/hack/dockerfiles/govulncheck.Dockerfile b/hack/dockerfiles/govulncheck.Dockerfile index 4e87036fc74b..42dfd053e20c 100644 --- a/hack/dockerfiles/govulncheck.Dockerfile +++ b/hack/dockerfiles/govulncheck.Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION="1.22" -ARG GOVULNCHECK_VERSION="v1.1.3" +ARG GO_VERSION=1.23 +ARG GOVULNCHECK_VERSION=v1.1.3 ARG FORMAT="text" FROM golang:${GO_VERSION}-alpine AS base diff --git a/hack/dockerfiles/vendor.Dockerfile b/hack/dockerfiles/vendor.Dockerfile index 859ccd2d16d9..c57c6b99ed01 100644 --- a/hack/dockerfiles/vendor.Dockerfile +++ b/hack/dockerfiles/vendor.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile-upstream:master -ARG GO_VERSION=1.22 +ARG GO_VERSION=1.23 ARG ALPINE_VERSION=3.20 ARG MODOUTDATED_VERSION=v0.9.0