Skip to content

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

chore: go 1.21.2 (#8584)

Danny Xufcbe2e206698
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index a067d7e237..ff44cbca57 100644
--- a/.github/workflows/backend-tests.yml
+++ b/.github/workflows/backend-tests.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
- go-version: 1.21.1
+ go-version: 1.21.2
cache: false
- name: Verify go.mod is tidy
run: |
diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.yml
index c3793fbadc..e43841a662 100644
--- a/.github/workflows/build-artifacts-and-draft-release.yml
+++ b/.github/workflows/build-artifacts-and-draft-release.yml
@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
- go-version: 1.21.1
+ go-version: 1.21.2
- uses: pnpm/[email protected]
with:
version: 8.8.0
@@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
- go-version: 1.21.1
+ go-version: 1.21.2
- uses: pnpm/[email protected]
with:
version: 8.8.0
@@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
- go-version: 1.21.1
+ go-version: 1.21.2
- uses: pnpm/[email protected]
with:
version: 8.8.0
diff --git a/README.md b/README.md
index 086e7f2a94..486b8f012a 100644
--- a/README.md
+++ b/README.md
@@ -263,7 +263,7 @@ Below diagram describes a typical mapping between an engineering org and the cor
### Prerequisites
-- [Go](https://golang.org/doc/install) (1.21.1 or later)
+- [Go](https://golang.org/doc/install) (1.21.2 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/go.mod b/go.mod
index 6e6e2fd392..1517b021ba 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/bytebase/bytebase
-go 1.21.1
+go 1.21.2
require (
cloud.google.com/go/spanner v1.49.0
diff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yaml
index fb2c0fafb1..94e4d9bac1 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.21.1"
+ - GO_VERSION="1.21.2"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
@@ -41,7 +41,7 @@ builds:
- release
env:
- VERSION="development"
- - GO_VERSION="1.21.1"
+ - GO_VERSION="1.21.2"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yaml
index 0d5e3ce23a..af9d7eee8c 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.21.1"
+ - GO_VERSION="1.21.2"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
@@ -46,7 +46,7 @@ builds:
- release
env:
- VERSION="development"
- - GO_VERSION="1.21.1"
+ - GO_VERSION="1.21.2"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 0bef2296c8..0ab9710eb3 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -26,13 +26,13 @@ COPY ./backend/enterprise/api/plan.yaml ./src/types/
# Build frontend
RUN pnpm "${RELEASE}-docker"
-FROM golang:1.21.1 as backend
+FROM golang:1.21.2 as backend
ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
ARG VERSION_SUFFIX=""
-ARG GO_VERSION="1.21.1"
+ARG GO_VERSION="1.21.2"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.bb b/scripts/Dockerfile.bb
index 949007a36e..4a09f5dcd2 100644
--- a/scripts/Dockerfile.bb
+++ b/scripts/Dockerfile.bb
@@ -5,12 +5,12 @@
# $ docker run --init --rm --name bb bytebase/bb
-FROM golang:1.21.1 as bb
+FROM golang:1.21.2 as bb
ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
-ARG GO_VERSION="1.21.1"
+ARG GO_VERSION="1.21.2"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depot
index 0694e5266e..f131ec4e94 100644
--- a/scripts/Dockerfile.depot
+++ b/scripts/Dockerfile.depot
@@ -5,13 +5,13 @@
# $ docker run --init --rm --name bytebase --publish 8080:8080 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase
-FROM golang:1.21.1 as backend
+FROM golang:1.21.2 as backend
ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
ARG VERSION_SUFFIX=""
-ARG GO_VERSION="1.21.1"
+ARG GO_VERSION="1.21.2"
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 2b4a73e3c0..081b8282fd 100644
--- a/scripts/Dockerfile.render-demo
+++ b/scripts/Dockerfile.render-demo
@@ -20,11 +20,11 @@ COPY ./backend/enterprise/api/plan.yaml ./src/types/
# Build frontend
RUN pnpm "${RELEASE}-docker"
-FROM golang:1.21.1 as backend
+FROM golang:1.21.2 as backend
ADD go.mod go.sum /
RUN go mod download
-ARG GO_VERSION="1.21.1"
+ARG GO_VERSION="1.21.2"
# 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 7c4c370c51..c93f6ee6d5 100644
--- a/scripts/Dockerfile.sql-service
+++ b/scripts/Dockerfile.sql-service
@@ -5,12 +5,12 @@
# $ docker run --init --rm --name sql-service --publish 8081:8081 bytebase/sql
-FROM golang:1.21.1 as sql
+FROM golang:1.21.2 as sql
ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
-ARG GO_VERSION="1.21.1"
+ARG GO_VERSION="1.21.2"
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 f34995e7f0..899491591c 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.21.1)" ];
+if [ "$(version ${GO_VERSION})" -lt "$(version 1.21.2)" ];
then
- echo "${RED}Precheck failed.${NC} Require go version >= 1.21.1. Current version ${GO_VERSION}."; exit 1;
+ echo "${RED}Precheck failed.${NC} Require go version >= 1.21.2. 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.21.1).
+# Step 2 - Build the monolithic app by building backend release version together with the backend/server/dist.
echo "Start building Bytebase monolithic ${VERSION}..."
echo ""