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.22.1 (#11052)
Danny Xucb2058ad7e71
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.ymlindex 95de210830..df09502721 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@v5with:- go-version: 1.21.6+ go-version: 1.22.1cache: false- name: Verify go.mod is tidyrun: |diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.ymlindex 95f4dab7c6..2e9cb80630 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@v5with:- go-version: 1.21.6+ go-version: 1.22.1- uses: pnpm/[email protected]with:version: 8.12.1@@ -43,7 +43,7 @@ jobs:- uses: actions/checkout@v4- uses: actions/setup-go@v5with:- go-version: 1.21.6+ go-version: 1.22.1- name: Make directoriesrun: |mkdir -p ./bytebase-build/linuxdiff --git a/.github/workflows/test_link.yml b/.github/workflows/test_link.ymlindex 215856ddc7..cfc2d72cb3 100644--- a/.github/workflows/test_link.yml+++ b/.github/workflows/test_link.yml@@ -16,7 +16,7 @@ jobs:- uses: actions/checkout@v4- uses: actions/setup-go@v5with:- go-version: 1.21.6+ go-version: 1.22.1cache: false- name: Validate linksrun: go test -timeout 600s -v ./scripts/... | tee test.log; exit ${PIPESTATUS[0]}diff --git a/README.md b/README.mdindex 648f058bfe..ce0a524239 100644--- a/README.md+++ b/README.md@@ -257,7 +257,7 @@ Below diagram describes a typical mapping between an engineering org and the cor### Prerequisites-- [Go](https://golang.org/doc/install) (1.21.6 or later)+- [Go](https://golang.org/doc/install) (1.22.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/go.mod b/go.modindex 08bfdb9670..2c47dd7846 100644--- a/go.mod+++ b/go.mod@@ -1,6 +1,6 @@module github.com/bytebase/bytebase-go 1.21.6+go 1.22.1require (cloud.google.com/go/spanner v1.57.0diff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yamlindex 443c3ef9c9..bd40dbd368 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.6"+ - GO_VERSION="1.22.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -41,7 +41,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.21.6"+ - GO_VERSION="1.22.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yamlindex 28325f63d1..906e1872d9 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.6"+ - GO_VERSION="1.22.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -46,7 +46,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.21.6"+ - GO_VERSION="1.22.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex 5615dd8ba1..361dc90312 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -18,14 +18,14 @@ COPY . .RUN pnpm --dir frontend install --frozen-lockfileRUN pnpm --dir frontend release-docker-FROM golang:1.21.6 as backend+FROM golang:1.22.1 as backendADD go.mod go.sum /RUN go mod downloadARG TARGETARCHARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.21.6"+ARG GO_VERSION="1.22.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.awsindex c42183c2e6..8b6ac7fda1 100644--- a/scripts/Dockerfile.aws+++ b/scripts/Dockerfile.aws@@ -19,13 +19,13 @@ COPY . .RUN pnpm --dir frontend install --frozen-lockfileRUN pnpm --dir frontend release-aws-FROM golang:1.21.6 as backend+FROM golang:1.22.1 as backendADD go.mod go.sum /RUN go mod downloadARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.21.6"+ARG GO_VERSION="1.22.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.bb b/scripts/Dockerfile.bbindex 8f2e2ed609..7bfd9fc9fd 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.6 as bb+FROM golang:1.22.1 as bbADD go.mod go.sum /RUN go mod downloadARG VERSION="development"-ARG GO_VERSION="1.21.6"+ARG GO_VERSION="1.22.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depotindex 78454df7ed..812766c4ec 100644--- a/scripts/Dockerfile.depot+++ b/scripts/Dockerfile.depot@@ -1,10 +1,10 @@-FROM golang:1.21.6 as backend+FROM golang:1.22.1 as backendADD go.mod go.sum /RUN go mod downloadARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.21.6"+ARG GO_VERSION="1.22.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 a11370da2e..1fc19373e4 100644--- a/scripts/Dockerfile.render-demo+++ b/scripts/Dockerfile.render-demo@@ -16,11 +16,11 @@ COPY . .ENV BB_GIT_COMMIT_ID_FE="${RENDER_GIT_COMMIT}"RUN cd frontend && pnpm install --frozen-lockfile && pnpm release-docker-FROM golang:1.21.6 as backend+FROM golang:1.22.1 as backendADD go.mod go.sum /RUN go mod download-ARG GO_VERSION="1.21.6"+ARG GO_VERSION="1.22.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 47712bc0d4..9356586ea0 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.6 as sql+FROM golang:1.22.1 as sqlADD go.mod go.sum /RUN go mod downloadARG VERSION="development"-ARG GO_VERSION="1.21.6"+ARG GO_VERSION="1.22.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 a23652973f..55e3673a13 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.6)" ];+if [ "$(version ${GO_VERSION})" -lt "$(version 1.22.1)" ];then- echo "${RED}Precheck failed.${NC} Require go version >= 1.21.6. Current version ${GO_VERSION}."; exit 1;+ echo "${RED}Precheck failed.${NC} Require go version >= 1.22.1. Current version ${GO_VERSION}."; exit 1;fiNODE_VERSION=`node -v | { read v; echo ${v#v}; }`