Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: Go 1.21.1 (#8022)
Danny Xufbeeccc2b830
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.ymlindex 6eba845d37..254c6b53e7 100644--- a/.github/workflows/backend-tests.yml+++ b/.github/workflows/backend-tests.yml@@ -20,7 +20,7 @@ jobs:- uses: actions/checkout@v3- uses: actions/setup-go@v4with:- go-version: 1.21.0+ go-version: 1.21.1- name: Verify go.mod is tidyrun: |go mod tidydiff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.ymlindex c071123eb8..82b06a474f 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@v3- uses: actions/setup-go@v4with:- go-version: 1.21.0+ go-version: 1.21.1- uses: pnpm/[email protected]with:version: 8.6.0@@ -42,7 +42,7 @@ jobs:- uses: actions/checkout@v3- uses: actions/setup-go@v4with:- go-version: 1.21.0+ go-version: 1.21.1- uses: pnpm/[email protected]with:version: 8.6.0@@ -73,7 +73,7 @@ jobs:- uses: actions/checkout@v3- uses: actions/setup-go@v4with:- go-version: 1.21.0+ go-version: 1.21.1- uses: pnpm/[email protected]with:version: 8.6.0diff --git a/README.md b/README.mdindex 745d980c29..298e903860 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.0 or later)+- [Go](https://golang.org/doc/install) (1.21.1 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.```bashdiff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yamlindex bb6d97e3ac..fb2c0fafb1 100644--- a/scripts/.goreleaser-for-darwin.yaml+++ b/scripts/.goreleaser-for-darwin.yaml@@ -17,7 +17,7 @@ builds:- embed_frontendenv:- VERSION="development"- - GO_VERSION="1.21.0"+ - GO_VERSION="1.21.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -41,7 +41,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.21.0"+ - GO_VERSION="1.21.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yamlindex d880dad73e..0d5e3ce23a 100644--- a/scripts/.goreleaser-for-linux.yaml+++ b/scripts/.goreleaser-for-linux.yaml@@ -17,7 +17,7 @@ builds:- embed_frontendenv:- VERSION="development"- - GO_VERSION="1.21.0"+ - GO_VERSION="1.21.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -46,7 +46,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.21.0"+ - GO_VERSION="1.21.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex ae6f4bb40d..4d7abebe71 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -26,13 +26,13 @@ COPY ./backend/enterprise/api/plan.yaml ./src/types/# Build frontendRUN pnpm "${RELEASE}-docker"-FROM golang:1.21.0 as backend+FROM golang:1.21.1 as backendADD go.mod go.sum /RUN go mod downloadARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.21.0"+ARG GO_VERSION="1.21.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.bb b/scripts/Dockerfile.bbindex 756e3107d9..949007a36e 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.0 as bb+FROM golang:1.21.1 as bbADD go.mod go.sum /RUN go mod downloadARG VERSION="development"-ARG GO_VERSION="1.21.0"+ARG GO_VERSION="1.21.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demoindex 6b43f52751..2b152711b5 100644--- a/scripts/Dockerfile.render-demo+++ b/scripts/Dockerfile.render-demo@@ -20,11 +20,11 @@ COPY ./backend/enterprise/api/plan.yaml ./src/types/# Build frontendRUN pnpm "${RELEASE}-docker"-FROM golang:1.21.0 as backend+FROM golang:1.21.1 as backendADD go.mod go.sum /RUN go mod download-ARG GO_VERSION="1.21.0"+ARG GO_VERSION="1.21.1"# RENDER_GIT_COMMIT is a render.com provided env var during build.# https://render.com/docs/environment-variablesARG RENDER_GIT_COMMIT="unknown"diff --git a/scripts/Dockerfile.sql-service b/scripts/Dockerfile.sql-serviceindex c1831bde16..779a06a0eb 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.0 as sql+FROM golang:1.21.1 as sqlADD go.mod go.sum /RUN go mod downloadARG VERSION="development"-ARG GO_VERSION="1.21.0"+ARG GO_VERSION="1.21.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/build_bytebase.sh b/scripts/build_bytebase.shindex 0a1222ed4c..f34995e7f0 100755--- a/scripts/build_bytebase.sh+++ b/scripts/build_bytebase.sh@@ -14,9 +14,9 @@ OUTPUT_DIR=$(mkdir_output "$1")OUTPUT_BINARY=$OUTPUT_DIR/bytebaseGO_VERSION=`go version | { read _ _ v _; echo ${v#go}; }`-if [ "$(version ${GO_VERSION})" -lt "$(version 1.21.0)" ];+if [ "$(version ${GO_VERSION})" -lt "$(version 1.21.1)" ];then- echo "${RED}Precheck failed.${NC} Require go version >= 1.21.0. Current version ${GO_VERSION}."; exit 1;+ echo "${RED}Precheck failed.${NC} Require go version >= 1.21.1. Current version ${GO_VERSION}."; exit 1;fiNODE_VERSION=`node -v | { read v; echo ${v#v}; }`@@ -31,7 +31,7 @@ thenfi# 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.0).+# 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).echo "Start building Bytebase monolithic ${VERSION}..."echo ""