From 00544191b6895dd97e23531dabbdbb25710e09d7 Mon Sep 17 00:00:00 2001 From: pingke Date: Fri, 22 Dec 2023 09:59:33 +0800 Subject: [PATCH] udpate go version --- .github/workflows/golangci-build-test.yml | 2 +- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/publish.yml | 2 +- GUIDE.md | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/golangci-build-test.yml b/.github/workflows/golangci-build-test.yml index 73c30aae..809351dd 100644 --- a/.github/workflows/golangci-build-test.yml +++ b/.github/workflows/golangci-build-test.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Build run: go build -v ./cmd/... diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e28cdb25..f21501b6 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2a99193..a5b568b2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Create package run: | diff --git a/GUIDE.md b/GUIDE.md index aa8819ee..9431d60b 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -19,7 +19,7 @@ Please refer to [this section](/README.md/#minimum-hardware-requirements) for ha ## System Environment - Ubuntu 20.04+ (tested and verified) - (Optional) Docker 24.0.5+ (would simplify the process) - - (Optional) Go 1.20.* (not compatible with Go 1.21 yet) and Node.js 16+ (can be installed following the [steps](#install-dependencies)) + - (Optional) Go 1.21.* and Node.js 16+ (can be installed following the [steps](#install-dependencies)) You can choose [the method of running es-node](#options-to-run-es-node) based on your current environment. @@ -123,13 +123,13 @@ _Please note that not all steps in this section are required; they depend on you ### Install Go -Download a stable Go release, e.g., go1.20.10 (can't be built on go1.21.* yet). +Download a stable Go release, e.g., go1.21.4. ```sh -curl -OL https://golang.org/dl/go1.20.10.linux-amd64.tar.gz +curl -OL https://golang.org/dl/go1.21.4.linux-amd64.tar.gz ``` Extract and install ```sh -tar -C /usr/local -xf go1.20.10.linux-amd64.tar.gz +tar -C /usr/local -xf go1.21.4.linux-amd64.tar.gz ``` Update `$PATH` ```