Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: go 1.20.5 (#6776)

Danny Xu684aad9f8304
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index d6fe63527e..f5881681cf 100644
--- a/.github/workflows/backend-tests.yml
+++ b/.github/workflows/backend-tests.yml
@@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
- go-version: 1.20.1
+ go-version: 1.20.5
check-latest: true
cache: true
- name: Verify go.mod is tidy
@@ -55,7 +55,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
- go-version: 1.20.1
+ go-version: 1.20.5
check-latest: true
cache: true
- name: Cache MySQL
diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.yml
index 30d7264a38..06e2f02827 100644
--- a/.github/workflows/build-artifacts-and-draft-release.yml
+++ b/.github/workflows/build-artifacts-and-draft-release.yml
@@ -24,7 +24,7 @@ jobs:
working-directory: frontend
- uses: actions/setup-go@v4
with:
- go-version: 1.20.1
+ go-version: 1.20.5
check-latest: true
cache: true
- name: Release
diff --git a/README.md b/README.md
index 4b66c2dc1e..26865f7c16 100644
--- a/README.md
+++ b/README.md
@@ -265,7 +265,7 @@ Below diagram describes a typical mapping between an engineering org and the cor
### Prerequisites
-- [Go](https://golang.org/doc/install) (1.20.1 or later)
+- [Go](https://golang.org/doc/install) (1.20.5 or later)
- [pnpm](https://pnpm.io/installation)
- [Air](https://github.com/bytebase/air) (**our forked repo @87187cc with the proper signal handling**). This is for backend live reload.
```bash
diff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yaml
index 025dd0fedd..0ee5b27a72 100644
--- a/scripts/.goreleaser-for-darwin.yaml
+++ b/scripts/.goreleaser-for-darwin.yaml
@@ -17,7 +17,7 @@ builds:
- embed_frontend
env:
- VERSION="development"
- - GO_VERSION="1.20.1"
+ - GO_VERSION="1.20.5"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
@@ -41,7 +41,7 @@ builds:
- release
env:
- VERSION="development"
- - GO_VERSION="1.20.1"
+ - GO_VERSION="1.20.5"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yaml
index dfaf8902ff..1a1e3b8a54 100644
--- a/scripts/.goreleaser-for-linux.yaml
+++ b/scripts/.goreleaser-for-linux.yaml
@@ -17,7 +17,7 @@ builds:
- embed_frontend
env:
- VERSION="development"
- - GO_VERSION="1.20.1"
+ - GO_VERSION="1.20.5"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
@@ -46,7 +46,7 @@ builds:
- release
env:
- VERSION="development"
- - GO_VERSION="1.20.1"
+ - GO_VERSION="1.20.5"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 80f8cba129..12a30a0448 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -24,11 +24,11 @@ COPY ./backend/plugin/advisor/config/ ./src/types
# Build frontend
RUN pnpm "${RELEASE}-docker"
-FROM golang:1.20.3 as backend
+FROM golang:1.20.5 as backend
ARG VERSION="development"
ARG VERSION_SUFFIX=""
-ARG GO_VERSION="1.20.1"
+ARG GO_VERSION="1.20.5"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.bb b/scripts/Dockerfile.bb
index 4f9e63b5dc..e61a7c28f5 100644
--- a/scripts/Dockerfile.bb
+++ b/scripts/Dockerfile.bb
@@ -5,10 +5,10 @@
# $ docker run --init --rm --name bb bytebase/bb
-FROM golang:1.20.3 as bb
+FROM golang:1.20.5 as bb
ARG VERSION="development"
-ARG GO_VERSION="1.20.1"
+ARG GO_VERSION="1.20.5"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demo
index cd300ca9c2..561404055a 100644
--- a/scripts/Dockerfile.render-demo
+++ b/scripts/Dockerfile.render-demo
@@ -19,9 +19,9 @@ COPY ./backend/plugin/advisor/config/ ./src/types
# Build frontend
RUN pnpm "${RELEASE}-docker"
-FROM golang:1.20.3 as backend
+FROM golang:1.20.5 as backend
-ARG GO_VERSION="1.20.1"
+ARG GO_VERSION="1.20.5"
# RENDER_GIT_COMMIT is a render.com provided env var during build.
# https://render.com/docs/environment-variables
ARG RENDER_GIT_COMMIT="unknown"
diff --git a/scripts/Dockerfile.sql-service b/scripts/Dockerfile.sql-service
index a088bfdc34..65152a7d6c 100644
--- a/scripts/Dockerfile.sql-service
+++ b/scripts/Dockerfile.sql-service
@@ -5,10 +5,10 @@
# $ docker run --init --rm --name sql-service --publish 8081:8081 bytebase/sql
-FROM golang:1.20.3 as sql
+FROM golang:1.20.5 as sql
ARG VERSION="development"
-ARG GO_VERSION="1.20.1"
+ARG GO_VERSION="1.20.5"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/build_bytebase.sh b/scripts/build_bytebase.sh
index 0d1136249b..15e802fffa 100755
--- a/scripts/build_bytebase.sh
+++ b/scripts/build_bytebase.sh
@@ -14,9 +14,9 @@ OUTPUT_DIR=$(mkdir_output "$1")
OUTPUT_BINARY=$OUTPUT_DIR/bytebase
GO_VERSION=`go version | { read _ _ v _; echo ${v#go}; }`
-if [ "$(version ${GO_VERSION})" -lt "$(version 1.20.1)" ];
+if [ "$(version ${GO_VERSION})" -lt "$(version 1.20.5)" ];
then
- echo "${RED}Precheck failed.${NC} Require go version >= 1.20.1. Current version ${GO_VERSION}."; exit 1;
+ echo "${RED}Precheck failed.${NC} Require go version >= 1.20.5. Current version ${GO_VERSION}."; exit 1;
fi
NODE_VERSION=`node -v | { read v; echo ${v#v}; }`
@@ -31,7 +31,7 @@ then
fi
# Step 1 - Build the frontend release version into the backend/server/dist folder
-# Step 2 - Build the monolithic app by building backend release version together with the backend/server/dist (leveraing embed introduced in Golang 1.20.1).
+# Step 2 - Build the monolithic app by building backend release version together with the backend/server/dist (leveraing embed introduced in Golang 1.20.5).
echo "Start building Bytebase monolithic ${VERSION}..."
echo ""