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.5 (#9732)
Danny Xu9ad61199a4b3
diff --git a/README.md b/README.mdindex 4282d0fd12..e5059fb44f 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.3 or later)+- [Go](https://golang.org/doc/install) (1.21.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.```bashdiff --git a/go.mod b/go.modindex ef2c7f05f6..56d4d6c7d4 100644--- a/go.mod+++ b/go.mod@@ -1,6 +1,6 @@module github.com/bytebase/bytebase-go 1.21.3+go 1.21.5require (cloud.google.com/go/spanner v1.53.0diff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yamlindex 0d18249caa..1f1ce770ca 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.3"+ - GO_VERSION="1.21.5"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -41,7 +41,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.21.3"+ - GO_VERSION="1.21.5"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yamlindex 2ddc00bee3..98dce21399 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.3"+ - GO_VERSION="1.21.5"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -46,7 +46,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.21.3"+ - GO_VERSION="1.21.5"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex 6f83f499b7..9c07bfc09e 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -19,13 +19,13 @@ COPY . .RUN pnpm --dir frontend install --frozen-lockfileRUN pnpm --dir frontend release-docker-FROM golang:1.21.3 as backend+FROM golang:1.21.5 as backendADD go.mod go.sum /RUN go mod downloadARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.21.3"+ARG GO_VERSION="1.21.5"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.bb b/scripts/Dockerfile.bbindex 65c5fc7524..55de1296c8 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.3 as bb+FROM golang:1.21.5 as bbADD go.mod go.sum /RUN go mod downloadARG VERSION="development"-ARG GO_VERSION="1.21.3"+ARG GO_VERSION="1.21.5"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depotindex 66ee42f057..dd7a66eafc 100644--- a/scripts/Dockerfile.depot+++ b/scripts/Dockerfile.depot@@ -1,10 +1,10 @@-FROM golang:1.21.3 as backend+FROM golang:1.21.5 as backendADD go.mod go.sum /RUN go mod downloadARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.21.3"+ARG GO_VERSION="1.21.5"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demoindex eb73999f05..a4b24831fd 100644--- a/scripts/Dockerfile.render-demo+++ b/scripts/Dockerfile.render-demo@@ -12,11 +12,11 @@ COPY . .RUN cd frontend && pnpm install --frozen-lockfile && pnpm release-docker-FROM golang:1.21.3 as backend+FROM golang:1.21.5 as backendADD go.mod go.sum /RUN go mod download-ARG GO_VERSION="1.21.3"+ARG GO_VERSION="1.21.5"# 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 69cac2070e..569b1db15b 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.3 as sql+FROM golang:1.21.5 as sqlADD go.mod go.sum /RUN go mod downloadARG VERSION="development"-ARG GO_VERSION="1.21.3"+ARG GO_VERSION="1.21.5"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/build_bytebase.sh b/scripts/build_bytebase.shindex b392c61748..8f6e227d88 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.3)" ];+if [ "$(version ${GO_VERSION})" -lt "$(version 1.21.5)" ];then- echo "${RED}Precheck failed.${NC} Require go version >= 1.21.3. Current version ${GO_VERSION}."; exit 1;+ echo "${RED}Precheck failed.${NC} Require go version >= 1.21.5. Current version ${GO_VERSION}."; exit 1;fiNODE_VERSION=`node -v | { read v; echo ${v#v}; }`