diff --git a/.github/workflows/check_and_build.yaml b/.github/workflows/check_and_build.yaml index a98de2847e5..4892af1674b 100644 --- a/.github/workflows/check_and_build.yaml +++ b/.github/workflows/check_and_build.yaml @@ -53,7 +53,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Cache Tools id: cache-tools @@ -82,7 +82,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Build run: make build diff --git a/.github/workflows/dataflow_engine_chaos.yaml b/.github/workflows/dataflow_engine_chaos.yaml index 9b15c48f9e9..e2140226ee5 100644 --- a/.github/workflows/dataflow_engine_chaos.yaml +++ b/.github/workflows/dataflow_engine_chaos.yaml @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Cache go modules uses: actions/cache@v2 diff --git a/.github/workflows/dm_binlog_999999.yaml b/.github/workflows/dm_binlog_999999.yaml index 39ed09558fd..fa0aaf93899 100644 --- a/.github/workflows/dm_binlog_999999.yaml +++ b/.github/workflows/dm_binlog_999999.yaml @@ -19,7 +19,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Check out code uses: actions/checkout@v2 diff --git a/.github/workflows/dm_chaos.yaml b/.github/workflows/dm_chaos.yaml index eb89003fef5..1a121a6a75b 100644 --- a/.github/workflows/dm_chaos.yaml +++ b/.github/workflows/dm_chaos.yaml @@ -40,7 +40,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Print Go version run: go version diff --git a/.github/workflows/dm_mariadb_master_down_and_up.yaml b/.github/workflows/dm_mariadb_master_down_and_up.yaml index 1d431e25634..74ccbc2191c 100644 --- a/.github/workflows/dm_mariadb_master_down_and_up.yaml +++ b/.github/workflows/dm_mariadb_master_down_and_up.yaml @@ -17,7 +17,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Check out code uses: actions/checkout@v2 diff --git a/.github/workflows/dm_upstream_switch.yaml b/.github/workflows/dm_upstream_switch.yaml index 2c5ee488053..21d367ee014 100644 --- a/.github/workflows/dm_upstream_switch.yaml +++ b/.github/workflows/dm_upstream_switch.yaml @@ -19,7 +19,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Check out code uses: actions/checkout@v2 diff --git a/.github/workflows/upgrade_dm_via_tiup.yaml b/.github/workflows/upgrade_dm_via_tiup.yaml index 5ad475d93f1..385662b9962 100644 --- a/.github/workflows/upgrade_dm_via_tiup.yaml +++ b/.github/workflows/upgrade_dm_via_tiup.yaml @@ -35,7 +35,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Check out code uses: actions/checkout@v2 @@ -86,7 +86,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Check out code uses: actions/checkout@v2 @@ -193,7 +193,7 @@ jobs: - name: Set up Go env uses: actions/setup-go@v3 with: - go-version: '1.21' + go-version: '1.23' - name: Check out code uses: actions/checkout@v2 diff --git a/.golangci.yml b/.golangci.yml index 4863db51246..2724855ec62 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: - go: "1.21" + go: "1.23" build-tags: - intest linters: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5fab8751ac..9f1be8f6547 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ your contribution accepted. Developing TiDB-CDC requires: -* [Go 1.21+](https://go.dev/doc/code) +* [Go 1.23+](https://go.dev/doc/code) * An internet connection to download the dependencies Simply run `make` to build the program. diff --git a/README_DM.md b/README_DM.md index d4b537ff559..d7c186aa798 100644 --- a/README_DM.md +++ b/README_DM.md @@ -19,7 +19,7 @@ To check the code style and build binaries, you can simply run: make build ``` -Note that DM supports building with the Go version `Go >= 1.21`. For unit test preparation, see [Running/Unit Test](dm/tests/README.md#Unit-Test). +Note that DM supports building with the Go version `Go >= 1.23`. For unit test preparation, see [Running/Unit Test](dm/tests/README.md#Unit-Test). If you only want to build binaries, you can run: diff --git a/README_TiCDC.md b/README_TiCDC.md index 40c557d374d..3ad4bd5195a 100644 --- a/README_TiCDC.md +++ b/README_TiCDC.md @@ -27,7 +27,7 @@ $ make cdc $ make test ``` -Note that TiCDC supports building with the Go version `Go >= 1.21`. +Note that TiCDC supports building with the Go version `Go >= 1.23`. When TiCDC is built successfully, you can find binary in the `bin` directory. Instructions for unit test and integration test can be found in [Running tests](./tests/integration_tests/README.md). diff --git a/deployments/engine/docker/Dockerfile b/deployments/engine/docker/Dockerfile index fde82ce5c61..1de0301badc 100644 --- a/deployments/engine/docker/Dockerfile +++ b/deployments/engine/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder #build RUN apk add --no-cache \ diff --git a/deployments/engine/docker/dind.Dockerfile b/deployments/engine/docker/dind.Dockerfile index df0cee7913d..e97667acca6 100644 --- a/deployments/engine/docker/dind.Dockerfile +++ b/deployments/engine/docker/dind.Dockerfile @@ -1,6 +1,6 @@ # In this file, we build an image with `docker-cli in docker` for engine integration tests. # For `dockerd in docker`, please refer to https://hub.docker.com/_/docker/tags?page=1&name=dind. -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder # If you add a new command dependency to engine integration test, add here and # rebuild this image as well diff --git a/deployments/ticdc/docker/Dockerfile b/deployments/ticdc/docker/Dockerfile index 2a3eaacd037..5b91fe038c9 100644 --- a/deployments/ticdc/docker/Dockerfile +++ b/deployments/ticdc/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder RUN apk add --no-cache git make bash WORKDIR /go/src/github.com/pingcap/tiflow COPY . . diff --git a/deployments/ticdc/docker/dev.Dockerfile b/deployments/ticdc/docker/dev.Dockerfile index 763e31e85c5..23512bd5f31 100644 --- a/deployments/ticdc/docker/dev.Dockerfile +++ b/deployments/ticdc/docker/dev.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder RUN apk add --no-cache git make bash findutils WORKDIR /go/src/github.com/pingcap/tiflow COPY . . diff --git a/deployments/ticdc/docker/integration-test.Dockerfile b/deployments/ticdc/docker/integration-test.Dockerfile index 56e7db35d02..5fbaab0fe7d 100644 --- a/deployments/ticdc/docker/integration-test.Dockerfile +++ b/deployments/ticdc/docker/integration-test.Dockerfile @@ -29,7 +29,7 @@ RUN ./download-integration-test-binaries.sh $BRANCH $COMMUNITY $VERSION $OS $ARC RUN ls ./bin # Download go into /usr/local dir. -ENV GOLANG_VERSION 1.21.0 +ENV GOLANG_VERSION 1.23.0 ENV GOLANG_DOWNLOAD_URL https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \ && tar -C /usr/local -xzf golang.tar.gz \ diff --git a/deployments/ticdc/docker/kafka-consumer.Dockerfile b/deployments/ticdc/docker/kafka-consumer.Dockerfile index c3352973b3b..67c22e1b1ae 100644 --- a/deployments/ticdc/docker/kafka-consumer.Dockerfile +++ b/deployments/ticdc/docker/kafka-consumer.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder RUN apk add --no-cache make bash git build-base WORKDIR /go/src/github.com/pingcap/tiflow COPY . . diff --git a/deployments/ticdc/docker/pulsar-integration-test.Dockerfile b/deployments/ticdc/docker/pulsar-integration-test.Dockerfile index c620060c025..e64268b8c0a 100644 --- a/deployments/ticdc/docker/pulsar-integration-test.Dockerfile +++ b/deployments/ticdc/docker/pulsar-integration-test.Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:17 as jdk_container -FROM hub.pingcap.net/jenkins/centos7_golang-1.21:latest +FROM hub.pingcap.net/jenkins/centos7_golang-1.23:latest RUN curl https://archive.apache.org/dist/pulsar/pulsar-3.2.0/apache-pulsar-3.2.0-bin.tar.gz -o pulsar.tar.gz && \ tar -xvf pulsar.tar.gz && \ mv apache-pulsar-3.2.0 pulsar && \ diff --git a/deployments/ticdc/docker/storage-consumer.Dockerfile b/deployments/ticdc/docker/storage-consumer.Dockerfile index e8a9a874b72..ee6ec2d7116 100644 --- a/deployments/ticdc/docker/storage-consumer.Dockerfile +++ b/deployments/ticdc/docker/storage-consumer.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder RUN apk add --no-cache make bash git WORKDIR /go/src/github.com/pingcap/tiflow COPY . . diff --git a/dm/Dockerfile b/dm/Dockerfile index 9e328560bca..70e15a968f7 100644 --- a/dm/Dockerfile +++ b/dm/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as builder +FROM golang:1.23-alpine as builder MAINTAINER siddontang RUN apk add --no-cache git make diff --git a/examples/golang/avro-checksum-verification/go.mod b/examples/golang/avro-checksum-verification/go.mod index d6309590c58..0f2b428dcb3 100644 --- a/examples/golang/avro-checksum-verification/go.mod +++ b/examples/golang/avro-checksum-verification/go.mod @@ -1,6 +1,6 @@ module avro-checksum-sample -go 1.21 +go 1.23 require ( github.com/linkedin/goavro/v2 v2.11.1 diff --git a/examples/golang/canal-json-handle-key-only/go.mod b/examples/golang/canal-json-handle-key-only/go.mod index b2c05e9fb87..a4172cf580a 100644 --- a/examples/golang/canal-json-handle-key-only/go.mod +++ b/examples/golang/canal-json-handle-key-only/go.mod @@ -1,6 +1,6 @@ module canal-json-handle-key-only-example -go 1.21 +go 1.23 require ( github.com/go-sql-driver/mysql v1.7.1 diff --git a/go.mod b/go.mod index ce849e2aa63..48c9a828a9f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/pingcap/tiflow -go 1.21 +go 1.23 require ( cloud.google.com/go/storage v1.39.1 diff --git a/tests/integration_tests/debezium/go.mod b/tests/integration_tests/debezium/go.mod index 866df734a63..454c383b03a 100644 --- a/tests/integration_tests/debezium/go.mod +++ b/tests/integration_tests/debezium/go.mod @@ -1,6 +1,6 @@ module github.com/breezewish/checker -go 1.21.0 +go 1.23.0 require ( github.com/go-sql-driver/mysql v1.7.1 diff --git a/tools/check/go.mod b/tools/check/go.mod index aeffafb13c9..3bd7644e014 100644 --- a/tools/check/go.mod +++ b/tools/check/go.mod @@ -1,6 +1,6 @@ module github.com/pingcap/tidb-cdc/_tools -go 1.21 +go 1.23 require ( github.com/AlekSi/gocov-xml v1.1.0