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: use Go 1.20 (#4884)
Danny Xu5e2e0afd8b70
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.ymlindex cd5db2d766..87afe13ec6 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@v3with:- go-version: 1.19+ go-version: 1.20.1check-latest: truecache: true- name: Verify go.mod is tidy@@ -37,7 +37,7 @@ jobs:- name: golangci-lintuses: golangci/golangci-lint-action@v3with:- version: v1.50.1+ version: v1.51.2args: --verbose --timeout 10mskip-cache: true@@ -56,7 +56,7 @@ jobs:fetch-depth: 0- uses: actions/setup-go@v3with:- go-version: 1.19+ go-version: 1.20.1check-latest: truecache: true- name: Cache MySQLdiff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.ymlindex 0c3a595ae4..41c89bdd22 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@v3with:- go-version: 1.19+ go-version: 1.20.1check-latest: truecache: true- name: Build@@ -56,7 +56,7 @@ jobs:working-directory: frontend- uses: actions/setup-go@v3with:- go-version: 1.19+ go-version: 1.20.1check-latest: truecache: true- name: Build@@ -89,7 +89,7 @@ jobs:working-directory: frontend- uses: actions/setup-go@v3with:- go-version: 1.19+ go-version: 1.20.1check-latest: truecache: true- name: Make directoriesdiff --git a/README.md b/README.mdindex b0be5e737f..d9f872c59f 100644--- a/README.md+++ b/README.md@@ -64,9 +64,9 @@Want to formalize the database change process but don't know how?</p>-| | |-| --- | --- |-| <b>Standard Operating Procedure (SOP) </b><br />Standardize the database schema and data change process across different database systems, small or [large tables](https://www.bytebase.com/docs/change-database/online-schema-migration-for-mysql) and [different tenants](https://www.bytebase.com/docs/batch-change/multi-tenant-change).<br /><br/><b>SQL Review</b><br />[100+ lint rules](https://www.bytebase.com/docs/sql-review/review-rules) to detect SQL anti-patterns and enforce consistent SQL style in the organization.<br /><br /><b>GitOps</b><br />[Point-and-click GitHub and GitLab integration](https://www.bytebase.com/docs/vcs-integration/overview) to enable GitOps workflow for changing database.| <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/issue-detail.webp" /> |+| | |+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |+| <b>Standard Operating Procedure (SOP) </b><br />Standardize the database schema and data change process across different database systems, small or [large tables](https://www.bytebase.com/docs/change-database/online-schema-migration-for-mysql) and [different tenants](https://www.bytebase.com/docs/batch-change/multi-tenant-change).<br /><br/><b>SQL Review</b><br />[100+ lint rules](https://www.bytebase.com/docs/sql-review/review-rules) to detect SQL anti-patterns and enforce consistent SQL style in the organization.<br /><br /><b>GitOps</b><br />[Point-and-click GitHub and GitLab integration](https://www.bytebase.com/docs/vcs-integration/overview) to enable GitOps workflow for changing database. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/issue-detail.webp" /> |<br />@@ -76,8 +76,8 @@Want to control the data access but don't know how?</p>-| | |-| --- | --- |+| | |+| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- || <b>All-in-one SQL Editor</b><br />Web-based IDE specifically for performing SQL specific tasks.<br /><br/><b>Data Anonymization</b><br />State-of-the-art [column level anonymization](https://www.bytebase.com/docs/sql-editor/anonymize-data) engine to cover complex situations like subquery, CTE.<br /><br /><b>Database Access Control</b><br />Organization level policy to centralize the [database access control](https://www.bytebase.com/docs/administration/database-access-control). | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-editor.webp" /> |<br />@@ -88,9 +88,9 @@Want to enforce organization policy and monitor database activity but don't know how?</p>-| | |-| --- | --- |-| <b>Manage Database Resources</b><br /> A single place to manage environments, database instances, database users for application development, with optional [Terraform integration](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs). <br /><br /><b>Policy Enforcement</b><br />Enforce organization wide SQL Review policy, backup policy and data access policy.<br /><br/><b>SQL Editor Admin mode</b><br />[CLI like experience](https://www.bytebase.com/docs/sql-editor/admin-mode) without setting up bastion.| <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-review-policy.webp" /> |+| | |+| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |+| <b>Manage Database Resources</b><br /> A single place to manage environments, database instances, database users for application development, with optional [Terraform integration](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs). <br /><br /><b>Policy Enforcement</b><br />Enforce organization wide SQL Review policy, backup policy and data access policy.<br /><br/><b>SQL Editor Admin mode</b><br />[CLI like experience](https://www.bytebase.com/docs/sql-editor/admin-mode) without setting up bastion. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/sql-review-policy.webp" /> |<br />@@ -100,8 +100,8 @@Want to avoid data leakage, change outage and detect malicious behavior but don't know how?</p>-| | |-| --- | --- |+| | |+| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ || <b>Centralize Change, Query and Admin Tasks</b><br />A single place to perform different tasks on different databases, thus enforce policy and monitor activity accordingly. <br /><br /><b>RBAC</b><br />[Two-level RBAC model](https://www.bytebase.com/docs/concepts/roles-and-permissions) mapping to the organization wide privileges and application team privileges respectively.<br /><br /><b>Anomaly Center and Audit Logging</b><br /> Capture all database [anomalies](https://www.bytebase.com/docs/anomaly-detection/anomaly-center), user actions and system events and present them in a holistic view. | <img src="https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/anomaly-center.webp" /> |<br />@@ -114,20 +114,20 @@ Bytebase is a Database CI/CD solution for the Developers and DBAs. It's the **on- [Bytebase CLI (bb)](https://www.bytebase.com/docs/cli/overview): The CLI to help developers integrate database changes into the existing CI/CD workflow.- [Bytebase GitHub App](https://github.com/marketplace/bytebase) and [SQL Review GitHub Action](https://github.com/marketplace/actions/sql-review): The GitHub App and GitHub Action to detect SQL anti-patterns and enforce a consistent SQL style guide during Pull Request.- [Terraform Bytebase Provider](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs): The Terraform-provider enables team to manage Bytebase resources via Terraform. A typical setup involves teams using-Terraform to provision database instances from Cloud vendors, followed by using Bytebase provider to-prepare those instances ready for application use.--| | Topic |-| --- | :--- |-| 🏗️ | <b>[Installation](#-installation)</b> |-| 🎮 | <b>[Demo](#-demo)</b> |-| 👩🏫 | <b>[Tutorials](#-tutorials)</b> |-| 💎 | <b>[Design Principles](#-design-principles)</b> |-| 🧩 | <b>[Data Model](#-data-model)</b> |-| 🎭 | <b>[Roles](#-roles)</b> |-| 🕊 | <b>[Developing and Contributing](#-developing-and-contributing)</b> |-| 🤺 | <b>[Bytebase vs Alternatives](#-bytebase-vs-alternatives)</b> |+ provider enables team to manage Bytebase resources via Terraform. A typical setup involves teams using+ Terraform to provision database instances from Cloud vendors, followed by using Bytebase provider to+ prepare those instances ready for application use.++| | Topic |+| --- | :------------------------------------------------------------------ |+| 🏗️ | <b>[Installation](#-installation)</b> |+| 🎮 | <b>[Demo](#-demo)</b> |+| 👩🏫 | <b>[Tutorials](#-tutorials)</b> |+| 💎 | <b>[Design Principles](#-design-principles)</b> |+| 🧩 | <b>[Data Model](#-data-model)</b> |+| 🎭 | <b>[Roles](#-roles)</b> |+| 🕊 | <b>[Developing and Contributing](#-developing-and-contributing)</b> |+| 🤺 | <b>[Bytebase vs Alternatives](#-bytebase-vs-alternatives)</b> |<br />@@ -141,11 +141,11 @@ prepare those instances ready for application use.```-* [Build from source](https://www.bytebase.com/docs/get-started/install/build-from-source-code)-* [Docker](https://www.bytebase.com/docs/get-started/install/deploy-with-docker)-* [Kubernetes](https://www.bytebase.com/docs/get-started/install/deploy-to-kubernetes)-* [render.com](https://www.bytebase.com/docs/get-started/install/deploy-to-render)-* [Rainbond](https://www.bytebase.com/docs/get-started/install/deploy-to-rainbond)+- [Build from source](https://www.bytebase.com/docs/get-started/install/build-from-source-code)+- [Docker](https://www.bytebase.com/docs/get-started/install/deploy-with-docker)+- [Kubernetes](https://www.bytebase.com/docs/get-started/install/deploy-to-kubernetes)+- [render.com](https://www.bytebase.com/docs/get-started/install/deploy-to-render)+- [Rainbond](https://www.bytebase.com/docs/get-started/install/deploy-to-rainbond)<br />@@ -167,7 +167,6 @@ our product experts.- [Get Database Change Notification via Webhook](https://www.bytebase.com/blog/get-database-change-notification-via-webhook)- [How to Set Up Backup Monitoring with Better Uptime](https://www.bytebase.com/blog/how-to-use-bytebase-with-better-uptime)-## Manage database from cloud database vendors- Manage Snowflake@@ -184,11 +183,11 @@ our product experts.# 💎 Design Principles-| | | |-| --- | --- | --- |-| 🪶 | Dependency Free | Start with a single command `./bytebase` without any external dependency. External PostgreSQL data store and others are optional.|-| 🔗 | Integration First | Solely focus on database management and leave the rest to others. We have native VCS integration with [GitHub/GitLab](https://www.bytebase.com/docs/vcs-integration/overview), [Terraform Provider](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs), [webhook](https://www.bytebase.com/docs/administration/webhook-integration/overview), and etc.|-| 💂♀️ | Engineering Disciplined | Disciplined [bi-weekly release](https://www.bytebase.com/changelog) and [engineering practice](https://github.com/bytebase/bytebase/blob/main/docs/life-of-a-feature.md).|+| | | |+| --- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| 🪶 | Dependency Free | Start with a single command `./bytebase` without any external dependency. External PostgreSQL data store and others are optional. |+| 🔗 | Integration First | Solely focus on database management and leave the rest to others. We have native VCS integration with [GitHub/GitLab](https://www.bytebase.com/docs/vcs-integration/overview), [Terraform Provider](https://registry.terraform.io/providers/bytebase/bytebase/latest/docs), [webhook](https://www.bytebase.com/docs/administration/webhook-integration/overview), and etc. |+| 💂♀️ | Engineering Disciplined | Disciplined [bi-weekly release](https://www.bytebase.com/changelog) and [engineering practice](https://github.com/bytebase/bytebase/blob/main/docs/life-of-a-feature.md). |<br />@@ -216,9 +215,9 @@ Bytebase employs RBAC (Role-Based-Access-Control) and provides two role sets at- Workspace roles: `Owner`, `DBA`, `Developer`. The workspace role maps to the role in an engineering organization.- Project roles: `Owner`, `Developer`. The project level role maps to the role in a specific team or project.- Every user is assigned a workspace role, and if a particular user is involved in a particular project, then she will also be assigned a project role accordingly.+Every user is assigned a workspace role, and if a particular user is involved in a particular project, then she will also be assigned a project role accordingly.- Below diagram describes a typical mapping between an engineering org and the corresponding roles in the Bytebase workspace+Below diagram describes a typical mapping between an engineering org and the corresponding roles in the Bytebase workspace<p align="center"><img@@ -242,28 +241,30 @@ Bytebase employs RBAC (Role-Based-Access-Control) and provides two role sets at/></p>-* Bytebase is built with a curated tech stack. It is optimized for **developer experience** and is very easy to start-working on the code:+- Bytebase is built with a curated tech stack. It is optimized for **developer experience** and is very easy to start+ working on the code:1. It has no external dependency.1. It requires zero config.1. 1 command to start backend and 1 command to start frontend, both with live reload support.-* Interactive code walkthrough- * [Life of a schema change](https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/docs/design/life-of-a-schema-change.snb.md)- * [SQL Review](https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/docs/design/sql-review-source-code-tour.snb.md)+- Interactive code walkthrough++ - [Life of a schema change](https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/docs/design/life-of-a-schema-change.snb.md)+ - [SQL Review](https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/docs/design/sql-review-source-code-tour.snb.md)-* Follow [Life of a Feature](https://github.com/bytebase/bytebase/blob/main/docs/life-of-a-feature.md).+- Follow [Life of a Feature](https://github.com/bytebase/bytebase/blob/main/docs/life-of-a-feature.md).## Dev Environemnt Setup### Prerequisites-- [Go](https://golang.org/doc/install) (1.19 or later)+- [Go](https://golang.org/doc/install) (1.20.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.```bashgo install github.com/bytebase/air@87187cc+ ```### Steps@@ -322,10 +323,8 @@ decision we make so that we can focus on supporting other databases without goodIn particular, many of our users tell us Bytebase is by far the best (and sometimes the only) databasetool that can support their PostgreSQL and ClickHouse use cases.-[](https://star-history.com/#bytebase/bytebase&liquibase/liquibase&flyway/flyway&Date)-## Bytebase vs Yearning, ArcheryEither Yearning or Archery provides a DBA operation portal. While Bytebase provides a collaboration@@ -334,8 +333,7 @@ Bytebase has the similar `Project` concept seen in GitLab/GitHub and provides nawith GitLab/GitHub.Another key difference is Yearning, Archery are open source projects maintained by the individuals part-time. While Bytebase is open-sourced, it adopts an open-core model and is a commercialized product, supported-by a [fully staffed team](https://www.bytebase.com/about#team) [releasing new version every 2 weeks](https://www.bytebase.com/changelog).-+by a [fully staffed team](https://www.bytebase.com/about#team) [releasing new version every 2 weeks](https://www.bytebase.com/changelog).[](https://star-history.com/#bytebase/bytebase&cookieY/Yearning&hhyo/Archery&Date)@@ -355,5 +353,5 @@ Check out our [FAQ](https://www.bytebase.com/docs/faq).# 🙋 Contact Us-* Interested in joining us? Check out our [jobs page](https://bytebase.com/jobs?source=github) for openings.-* Want to solve your schema change and database management headache? Book a [30min demo](https://cal.com/adela-bytebase/30min) with one of our product experts.+- Interested in joining us? Check out our [jobs page](https://bytebase.com/jobs?source=github) for openings.+- Want to solve your schema change and database management headache? Book a [30min demo](https://cal.com/adela-bytebase/30min) with one of our product experts.diff --git a/backend/plugin/advisor/utils_for_tests.go b/backend/plugin/advisor/utils_for_tests.goindex 99040510c7..c611921462 100644--- a/backend/plugin/advisor/utils_for_tests.go+++ b/backend/plugin/advisor/utils_for_tests.go@@ -204,7 +204,7 @@ func RunSQLReviewRuleTest(t *testing.T, rule SQLReviewRuleType, dbType db.Type,// RandomString returns random string with specific length.func RandomString(length int) string {var letters = []rune("abcdefghijklmnopqrstuvwxyz")- rand.Seed(time.Now().UnixNano())+ var rand = rand.New(rand.NewSource(time.Now().UnixNano()))b := make([]rune, length)for i := range b {diff --git a/backend/plugin/db/util/driverutil_test.go b/backend/plugin/db/util/driverutil_test.goindex b7a90b6dbf..1c0ed675dd 100644--- a/backend/plugin/db/util/driverutil_test.go+++ b/backend/plugin/db/util/driverutil_test.go@@ -229,7 +229,7 @@ func TestApplyMultiStatements(t *testing.T) {}func generateOneMBInsert() string {- rand.Seed(time.Now().UnixNano())+ var rand = rand.New(rand.NewSource(time.Now().UnixNano()))letterList := []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")b := make([]byte, 1024*1024)for i := range b {diff --git a/backend/plugin/parser/split_multi_sql_test.go b/backend/plugin/parser/split_multi_sql_test.goindex 68cf94a8d2..0fd0f184a8 100644--- a/backend/plugin/parser/split_multi_sql_test.go+++ b/backend/plugin/parser/split_multi_sql_test.go@@ -21,7 +21,7 @@ type resData struct {}func generateOneMBInsert() string {- rand.Seed(time.Now().UnixNano())+ var rand = rand.New(rand.NewSource(time.Now().UnixNano()))letterList := []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")b := make([]byte, 1024*1024)for i := range b {diff --git a/backend/tests/mysql_test.go b/backend/tests/mysql_test.goindex e4c8abff9a..138c1b507b 100644--- a/backend/tests/mysql_test.go+++ b/backend/tests/mysql_test.go@@ -194,7 +194,7 @@ func TestFetchBinlogFiles(t *testing.T) {}t.Log("Delete some downloaded files and re-download")- rand.Seed(time.Now().Unix())+ var rand = rand.New(rand.NewSource(time.Now().UnixNano()))// Fetch and randomly truncate/delete some binlog files.t.Log("Clean up binlog dir")binlogFiles, err := os.ReadDir(binlogDir)a.NoError(err)diff --git a/go.mod b/go.modindex e9b8c864bc..e4c7b12111 100644--- a/go.mod+++ b/go.mod@@ -1,6 +1,6 @@module github.com/bytebase/bytebase-go 1.19+go 1.20require (cloud.google.com/go/spanner v1.41.0diff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yamlindex 8041e15380..025dd0fedd 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.19"+ - GO_VERSION="1.20.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -41,7 +41,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.19"+ - GO_VERSION="1.20.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yamlindex 1348141ed7..dfaf8902ff 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.19"+ - GO_VERSION="1.20.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"@@ -46,7 +46,7 @@ builds:- releaseenv:- VERSION="development"- - GO_VERSION="1.19"+ - GO_VERSION="1.20.1"- CGO_ENABLED=1- GIT_COMMIT="unknown"- BUILD_TIME="unknown"diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex 0169f78886..a5cffa073f 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -24,11 +24,11 @@ COPY ./backend/plugin/advisor/config/ ./src/types# Build frontendRUN pnpm "${RELEASE}-docker"-FROM golang:1.19 as backend+FROM golang:1.20.1 as backendARG VERSION="development"ARG VERSION_SUFFIX=""-ARG GO_VERSION="1.19"+ARG GO_VERSION="1.20.1"ARG GIT_COMMIT="unknown"ARG BUILD_TIME="unknown"ARG BUILD_USER="unknown"diff --git a/scripts/Dockerfile.bb b/scripts/Dockerfile.bbindex e081df1ba9..104b4ad9b6 100644--- a/scripts/Dockerfile.bb+++ b/scripts/Dockerfile.bb@@ -5,10 +5,10 @@# $ docker run --init --rm --name bb bytebase/bb-FROM golang:1.19 as bb+FROM golang:1.20.1 as bbARG VERSION="development"-ARG GO_VERSION="1.19"+ARG GO_VERSION="1.20.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 c0825f0d9a..c6ff6732e9 100644--- a/scripts/Dockerfile.render-demo+++ b/scripts/Dockerfile.render-demo@@ -19,9 +19,9 @@ COPY ./backend/plugin/advisor/config/ ./src/types# Build frontendRUN pnpm "${RELEASE}-docker"-FROM golang:1.19 as backend+FROM golang:1.20.1 as backend-ARG GO_VERSION="unknown"+ARG GO_VERSION="1.20.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 bdd8bc4734..3e41d28001 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.19 as sql+FROM golang:1.20.1 as sqlARG VERSION="development"-ARG GO_VERSION="1.19"+ARG GO_VERSION="1.20.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 b181484a72..0d1136249b 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.19)" ];+if [ "$(version ${GO_VERSION})" -lt "$(version 1.20.1)" ];then- echo "${RED}Precheck failed.${NC} Require go version >= 1.19. Current version ${GO_VERSION}."; exit 1;+ echo "${RED}Precheck failed.${NC} Require go version >= 1.20.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.19).+# 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).echo "Start building Bytebase monolithic ${VERSION}..."echo ""