diff --git a/.github/workflows/ci-schedule.yml b/.github/workflows/ci-schedule.yml index 0f560545bfda..c9b123805744 100644 --- a/.github/workflows/ci-schedule.yml +++ b/.github/workflows/ci-schedule.yml @@ -22,7 +22,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: setup e2e test environment run: | export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0639ba7f0b6..e5322efd7dc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: vendor run: hack/verify-vendor.sh - name: lint @@ -41,7 +41,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: Install Protoc # TODO(@RainbowMango): Update the action version to adopt Node16 # track issue: https://github.com/arduino/setup-protoc/issues/59 @@ -75,7 +75,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: compile run: make all test: @@ -88,7 +88,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: make test run: make test - name: Upload coverage to Codecov @@ -125,7 +125,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: setup e2e test environment run: | export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }} diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml index ad501676c51d..42836c13b08b 100644 --- a/.github/workflows/cli.yaml +++ b/.github/workflows/cli.yaml @@ -28,7 +28,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - uses: engineerd/setup-kind@v0.5.0 with: version: "v0.17.0" diff --git a/.github/workflows/dockerhub-latest-image.yml b/.github/workflows/dockerhub-latest-image.yml index 0eb6456e827c..5bdff066efab 100644 --- a/.github/workflows/dockerhub-latest-image.yml +++ b/.github/workflows/dockerhub-latest-image.yml @@ -35,7 +35,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: install QEMU uses: docker/setup-qemu-action@v2 - name: install Buildx diff --git a/.github/workflows/dockerhub-released-image.yml b/.github/workflows/dockerhub-released-image.yml index 20241cab942d..7d29cd54bd49 100644 --- a/.github/workflows/dockerhub-released-image.yml +++ b/.github/workflows/dockerhub-released-image.yml @@ -31,7 +31,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: install QEMU uses: docker/setup-qemu-action@v2 - name: install Buildx diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82548642ffe3..da87bba7c8d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: Making and packaging env: GOOS: ${{ matrix.os }} diff --git a/.github/workflows/swr-latest-image.yml b/.github/workflows/swr-latest-image.yml index 6217cc0ac8d5..7ff01e629023 100644 --- a/.github/workflows/swr-latest-image.yml +++ b/.github/workflows/swr-latest-image.yml @@ -22,7 +22,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: build images env: REGISTRY: ${{secrets.SWR_REGISTRY}} diff --git a/.github/workflows/swr-released-image.yml b/.github/workflows/swr-released-image.yml index 296f46d1894a..338576b2ac72 100644 --- a/.github/workflows/swr-released-image.yml +++ b/.github/workflows/swr-released-image.yml @@ -19,7 +19,7 @@ jobs: - name: install Go uses: actions/setup-go@v3 with: - go-version: 1.19.5 + go-version: 1.20.4 - name: build images env: REGISTRY: ${{secrets.SWR_REGISTRY}} diff --git a/README.md b/README.md index 2bd75a9228d2..d71c8efd572c 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ This guide will cover: - Propagate an application by using `karmada`. ### Prerequisites -- [Go](https://golang.org/) version v1.19+ +- [Go](https://golang.org/) version v1.20+ - [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) version v1.19+ - [kind](https://kind.sigs.k8s.io/) version v0.14.0+ diff --git a/go.mod b/go.mod index 1287db9e18f8..762dfcdfd726 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/karmada-io/karmada -go 1.19 +go 1.20 require ( github.com/distribution/distribution/v3 v3.0.0-20210507173845-9329f6a62b67 diff --git a/hack/util.sh b/hack/util.sh index d5aba91781c2..df65accdefa1 100755 --- a/hack/util.sh +++ b/hack/util.sh @@ -22,7 +22,7 @@ KARMADA_OPENSEARCH_DASHBOARDS_LABEL="karmada-opensearch-dashboards" KARMADA_GO_PACKAGE="github.com/karmada-io/karmada" -MIN_Go_VERSION=go1.19.0 +MIN_Go_VERSION=go1.20.0 KARMADA_TARGET_SOURCE=( karmada-aggregated-apiserver=cmd/aggregated-apiserver