diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1cc63bf633..2e61f36f47 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,7 +10,7 @@ on: branches: - master env: - GO_VERSION: "1.21" + GO_VERSION: "1.22" PRIORITIES: "P0" jobs: unpack-envvars: diff --git a/.github/workflows/flyteidl-checks.yml b/.github/workflows/flyteidl-checks.yml index aa6ff0f652..f8a1d0f4d2 100644 --- a/.github/workflows/flyteidl-checks.yml +++ b/.github/workflows/flyteidl-checks.yml @@ -10,7 +10,7 @@ on: branches: - master env: - GO_VERSION: "1.21" + GO_VERSION: "1.22" jobs: unpack-envvars: runs-on: ubuntu-latest diff --git a/.github/workflows/generate_flyte_manifest.yml b/.github/workflows/generate_flyte_manifest.yml index 33bbdca893..a8c90a451e 100644 --- a/.github/workflows/generate_flyte_manifest.yml +++ b/.github/workflows/generate_flyte_manifest.yml @@ -15,9 +15,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: "0" - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - name: Update references env: VERSION: ${{ github.event.inputs.next-version }} diff --git a/.github/workflows/go_generate.yml b/.github/workflows/go_generate.yml index bef6c6713b..2fb80653ae 100644 --- a/.github/workflows/go_generate.yml +++ b/.github/workflows/go_generate.yml @@ -21,13 +21,13 @@ jobs: working-directory: ${{ inputs.component }} steps: - uses: actions/checkout@v4 - - uses: arduino/setup-protoc@v1 + - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.FLYTE_BOT_PAT }} - uses: bufbuild/buf-setup-action@v1 with: github_token: ${{ secrets.FLYTE_BOT_PAT }} - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} - name: Go generate and diff diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4c1ecceadd..eb0118f6d1 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -37,7 +37,7 @@ jobs: with: version: "v0.11.1" - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} - name: Integration diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c58f87f4a..54793d1002 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} - name: Lint diff --git a/.github/workflows/single-binary.yml b/.github/workflows/single-binary.yml index ce5411328c..23d438b322 100644 --- a/.github/workflows/single-binary.yml +++ b/.github/workflows/single-binary.yml @@ -17,9 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b7c76cff20..cbce9cd054 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,9 +16,9 @@ jobs: - name: Fetch the code uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - name: Compile run: make compile - name: Run tests @@ -75,8 +75,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - name: Helm and diff run: DELTA_CHECK=true make helm diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d3a20f3823..3911d64026 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -23,7 +23,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} - name: Unit Tests diff --git a/Dockerfile b/Dockerfile index c48d292535..fc32351ebe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG FLYTECONSOLE_VERSION=latest FROM ghcr.io/flyteorg/flyteconsole:${FLYTECONSOLE_VERSION} AS flyteconsole -FROM --platform=${BUILDPLATFORM} golang:1.21-bookworm AS flytebuilder +FROM --platform=${BUILDPLATFORM} golang:1.22-bookworm AS flytebuilder ARG TARGETARCH ENV GOARCH "${TARGETARCH}" diff --git a/Dockerfile.datacatalog b/Dockerfile.datacatalog index ffda0ca8db..b6bfc8707d 100644 --- a/Dockerfile.datacatalog +++ b/Dockerfile.datacatalog @@ -3,7 +3,8 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst -FROM --platform=${BUILDPLATFORM} golang:1.21-alpine3.18 as builder +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine3.18 as builder + ARG TARGETARCH ENV GOARCH "${TARGETARCH}" diff --git a/Dockerfile.flyteadmin b/Dockerfile.flyteadmin index fa8b3acbd3..2fe21cccc2 100644 --- a/Dockerfile.flyteadmin +++ b/Dockerfile.flyteadmin @@ -3,7 +3,7 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst -FROM --platform=${BUILDPLATFORM} golang:1.21-alpine3.18 as builder +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine3.18 as builder ARG TARGETARCH ENV GOARCH "${TARGETARCH}" diff --git a/Dockerfile.flytecopilot b/Dockerfile.flytecopilot index f696ebd616..44107f1097 100644 --- a/Dockerfile.flytecopilot +++ b/Dockerfile.flytecopilot @@ -3,7 +3,8 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst -FROM --platform=${BUILDPLATFORM} golang:1.21-alpine3.18 as builder +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine3.18 as builder + ARG TARGETARCH ENV GOARCH "${TARGETARCH}" diff --git a/Dockerfile.flytepropeller b/Dockerfile.flytepropeller index fa226c1d85..058d78b219 100644 --- a/Dockerfile.flytepropeller +++ b/Dockerfile.flytepropeller @@ -3,7 +3,9 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst -FROM --platform=${BUILDPLATFORM} golang:1.21-alpine3.18 as builder + +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine3.18 as builder + ARG TARGETARCH ENV GOARCH "${TARGETARCH}" diff --git a/Dockerfile.flytescheduler b/Dockerfile.flytescheduler index 71421fd221..b22d050fc9 100644 --- a/Dockerfile.flytescheduler +++ b/Dockerfile.flytescheduler @@ -3,7 +3,9 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst -FROM --platform=${BUILDPLATFORM} golang:1.21-alpine3.18 as builder + +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine3.18 as builder + ARG TARGETARCH ENV GOARCH "${TARGETARCH}" diff --git a/boilerplate/flyte/golang_support_tools/go.mod b/boilerplate/flyte/golang_support_tools/go.mod index 2b4aa1d1a0..3abdda1712 100644 --- a/boilerplate/flyte/golang_support_tools/go.mod +++ b/boilerplate/flyte/golang_support_tools/go.mod @@ -1,8 +1,6 @@ module github.com/flyteorg/boilerplate -go 1.21 - -toolchain go1.21.7 +go 1.22 require ( github.com/EngHabu/mockery v0.0.0-20220916190332-dde70e38baba diff --git a/datacatalog/go.mod b/datacatalog/go.mod index b361dff689..74aa988681 100644 --- a/datacatalog/go.mod +++ b/datacatalog/go.mod @@ -1,6 +1,8 @@ module github.com/flyteorg/flyte/datacatalog -go 1.21 +go 1.22 + +toolchain go1.22.1 require ( github.com/Selvatico/go-mocket v1.0.7 diff --git a/docker/sandbox-bundled/Dockerfile b/docker/sandbox-bundled/Dockerfile index 0e8b0b0855..92e8fa2d46 100644 --- a/docker/sandbox-bundled/Dockerfile +++ b/docker/sandbox-bundled/Dockerfile @@ -10,7 +10,7 @@ COPY images/manifest.txt images/preload ./ RUN --security=insecure ./preload manifest.txt -FROM --platform=${BUILDPLATFORM} golang:1.19-bullseye AS bootstrap +FROM --platform=${BUILDPLATFORM} golang:1.22-bullseye AS bootstrap ARG TARGETARCH ENV CGO_ENABLED 0 diff --git a/docker/sandbox-bundled/bootstrap/go.mod b/docker/sandbox-bundled/bootstrap/go.mod index 447dd0862f..81c932457e 100644 --- a/docker/sandbox-bundled/bootstrap/go.mod +++ b/docker/sandbox-bundled/bootstrap/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte/docker/sandbox-bundled/bootstrap -go 1.21 +go 1.22 require ( github.com/stretchr/testify v1.8.0 diff --git a/flyteadmin/go.mod b/flyteadmin/go.mod index d3e5e602d7..4c43d4ad84 100644 --- a/flyteadmin/go.mod +++ b/flyteadmin/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte/flyteadmin -go 1.21 +go 1.22 require ( cloud.google.com/go/iam v1.1.5 diff --git a/flytecopilot/go.mod b/flytecopilot/go.mod index f1265198fe..b1f7b38221 100644 --- a/flytecopilot/go.mod +++ b/flytecopilot/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte/flytecopilot -go 1.21 +go 1.22 require ( github.com/aws/aws-sdk-go v1.44.2 diff --git a/flytectl/go.mod b/flytectl/go.mod index 47f9a1d5a7..c661cfde37 100644 --- a/flytectl/go.mod +++ b/flytectl/go.mod @@ -1,6 +1,8 @@ module github.com/flyteorg/flyte/flytectl -go 1.21 +go 1.22 + +toolchain go1.22.0 require ( github.com/apoorvam/goterminal v0.0.0-20180523175556-614d345c47e5 diff --git a/flyteidl/go.mod b/flyteidl/go.mod index 9f3ebc3f96..1bef1d2be6 100644 --- a/flyteidl/go.mod +++ b/flyteidl/go.mod @@ -1,8 +1,6 @@ module github.com/flyteorg/flyte/flyteidl -go 1.21 - -toolchain go1.21.3 +go 1.22 require ( github.com/flyteorg/flyte/flytestdlib v0.0.0-00010101000000-000000000000 diff --git a/flyteplugins/go.mod b/flyteplugins/go.mod index bcf6dab613..692d43b712 100644 --- a/flyteplugins/go.mod +++ b/flyteplugins/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte/flyteplugins -go 1.21 +go 1.22 require ( github.com/GoogleCloudPlatform/spark-on-k8s-operator v0.0.0-20200723154620-6f35a1152625 diff --git a/flytepropeller/go.mod b/flytepropeller/go.mod index 76e81366aa..75a2b684df 100644 --- a/flytepropeller/go.mod +++ b/flytepropeller/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte/flytepropeller -go 1.21 +go 1.22 require ( github.com/DiSiqueira/GoTree v1.0.1-0.20180907134536-53a8e837f295 diff --git a/flytestdlib/go.mod b/flytestdlib/go.mod index a463628661..93a334c720 100644 --- a/flytestdlib/go.mod +++ b/flytestdlib/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte/flytestdlib -go 1.21 +go 1.22 require ( github.com/aws/aws-sdk-go v1.44.2 diff --git a/go.mod b/go.mod index 2748b1f293..336fdb016a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/flyteorg/flyte -go 1.21 +go 1.22 require ( github.com/flyteorg/flyte/datacatalog v0.0.0-00010101000000-000000000000