Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: gorelease (#11670)
Danny Xu909929919631
diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.ymlindex 46cac6e072..6820f190fc 100644--- a/.github/workflows/build-artifacts-and-draft-release.yml+++ b/.github/workflows/build-artifacts-and-draft-release.yml@@ -52,11 +52,6 @@ jobs:with:name: bytebase-linuxpath: ./bytebase-build/linux- - name: Merge checksum file- run: |- cd ./bytebase-build- cat ./linux/bytebase*checksums.txt >> checksums.txt- rm ./linux/bytebase*checksums.txt- name: Releaseuses: goreleaser/goreleaser-action@v5with:diff --git a/backend/server/server.go b/backend/server/server.goindex 144c574293..c4223e523a 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -51,7 +51,6 @@ import ("github.com/bytebase/bytebase/backend/runner/slowquerysync""github.com/bytebase/bytebase/backend/runner/taskrun""github.com/bytebase/bytebase/backend/store"- _ "github.com/bytebase/bytebase/docs/openapi" // initial the swagger doc)const (diff --git a/backend/sql-server/server.go b/backend/sql-server/server.goindex 549b42e6e1..15938b20f2 100644--- a/backend/sql-server/server.go+++ b/backend/sql-server/server.go@@ -8,10 +8,7 @@ import ("net/http""time"- echoswagger "github.com/swaggo/echo-swagger"-"github.com/bytebase/bytebase/backend/plugin/metric/segment"- _ "github.com/bytebase/bytebase/docs/sqlservice" // initial the swagger doc"github.com/labstack/echo-contrib/pprof""github.com/labstack/echo-contrib/prometheus"@@ -29,25 +26,6 @@ type Server struct {metricReporter *metricReporter}-// Use following cmd to generate swagger doc-// swag init -g ./backend/server.go -d ./backend/sql-server --output docs/sqlservice --parseDependency--// @title Bytebase SQL Service-// @version 1.0-// @description The OpenAPI for Bytebase SQL Service.-// @termsOfService https://www.bytebase.com/terms--// @contact.name API Support-// @contact.url https://github.com/bytebase/bytebase/-// @contact.email [email protected]--// @license.name MIT-// @license.url https://github.com/bytebase/bytebase/blob/main/LICENSE--// @host localhost:8081-// @BasePath /v1/-// @schemes http-// NewServer creates a server.func NewServer(ctx context.Context, prof Profile) (*Server, error) {s := &Server{@@ -90,7 +68,6 @@ func NewServer(ctx context.Context, prof Profile) (*Server, error) {}))}e.Use(middleware.RecoverWithConfig(middleware.RecoverConfig{}))- e.GET("/swagger/*", echoswagger.WrapHandler)apiGroup := e.Group("/v1")apiGroup.Use(func(next echo.HandlerFunc) echo.HandlerFunc {diff --git a/docs/openapi/docs.go b/docs/openapi/docs.godeleted file mode 100644index fb0d219a97..0000000000--- a/docs/openapi/docs.go+++ /dev/null@@ -1,170 +0,0 @@-// Package openapi GENERATED BY SWAG; DO NOT EDIT-// This file was generated by swaggo/swag-package openapi--import "github.com/swaggo/swag"--const docTemplate = `{- "schemes": {{ marshal .Schemes }},- "swagger": "2.0",- "info": {- "description": "{{escape .Description}}",- "title": "{{.Title}}",- "termsOfService": "https://www.bytebase.com/terms",- "contact": {- "name": "API Support",- "url": "https://github.com/bytebase/bytebase/",- "email": "[email protected]"- },- "license": {- "name": "MIT",- "url": "https://github.com/bytebase/bytebase/blob/main/LICENSE"- },- "version": "{{.Version}}"- },- "host": "{{.Host}}",- "basePath": "{{.BasePath}}",- "paths": {- "/sql/advise": {- "post": {- "description": "Parse and check the SQL statement according to the SQL review policy.",- "consumes": [- "*/*"- ],- "produces": [- "application/json"- ],- "tags": [- "SQL review"- ],- "summary": "Check the SQL statement.",- "parameters": [- {- "description": "The environment name. Case sensitive.",- "name": "environmentName",- "in": "body",- "required": true,- "schema": {- "type": "string"- }- },- {- "description": "The SQL statement.",- "name": "statement",- "in": "body",- "required": true,- "schema": {- "type": "string"- }- },- {- "enum": [- "MYSQL",- "POSTGRES",- "TIDB",- "OCEANBASE",- "SNOWFLAKE",- "MSSQL"- ],- "description": "The database type. Required if the port, host and database name is not specified.",- "name": "databaseType",- "in": "body",- "schema": {- "type": "string"- }- },- {- "description": "The instance host.",- "name": "host",- "in": "body",- "schema": {- "type": "string"- }- },- {- "description": "The instance port.",- "name": "port",- "in": "body",- "schema": {- "type": "string"- }- },- {- "description": "The database name in the instance.",- "name": "databaseName",- "in": "body",- "schema": {- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "OK",- "schema": {- "type": "array",- "items": {- "$ref": "#/definitions/advisor.Advice"- }- }- },- "400": {- "description": "Bad Request",- "schema": {- "$ref": "#/definitions/echo.HTTPError"- }- },- "500": {- "description": "Internal Server Error",- "schema": {- "$ref": "#/definitions/echo.HTTPError"- }- }- }- }- }- },- "definitions": {- "advisor.Advice": {- "type": "object",- "properties": {- "code": {- "description": "Code is the SQL check error code.",- "type": "integer"- },- "content": {- "type": "string"- },- "status": {- "description": "Status is the SQL check result. Could be \"SUCCESS\", \"WARN\", \"ERROR\"",- "type": "string"- },- "title": {- "type": "string"- }- }- },- "echo.HTTPError": {- "type": "object",- "properties": {- "message": {}- }- }- }-}`--// SwaggerInfo holds exported Swagger Info so clients can modify it-var SwaggerInfo = &swag.Spec{- Version: "1.0",- Host: "localhost:8080",- BasePath: "/v1/",- Schemes: []string{"http"},- Title: "Bytebase OpenAPI",- Description: "The OpenAPI for bytebase.",- InfoInstanceName: "swagger",- SwaggerTemplate: docTemplate,-}--func init() {- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)-}diff --git a/docs/openapi/swagger.yaml b/docs/openapi/swagger.yamldeleted file mode 100644index abba1bbfee..0000000000--- a/docs/openapi/swagger.yaml+++ /dev/null@@ -1,103 +0,0 @@-basePath: /v1/-definitions:- advisor.Advice:- properties:- code:- description: Code is the SQL check error code.- type: integer- content:- type: string- status:- description: Status is the SQL check result. Could be "SUCCESS", "WARN", "ERROR"- type: string- title:- type: string- type: object- echo.HTTPError:- properties:- message: {}- type: object-host: localhost:8080-info:- contact:- email: [email protected]- name: API Support- url: https://github.com/bytebase/bytebase/- description: The OpenAPI for bytebase.- license:- name: MIT- url: https://github.com/bytebase/bytebase/blob/main/LICENSE- termsOfService: https://www.bytebase.com/terms- title: Bytebase OpenAPI- version: "1.0"-paths:- /sql/advise:- post:- consumes:- - "*/*"- description: Parse and check the SQL statement according to the SQL review policy.- parameters:- - description: The environment name. Case sensitive.- in: body- name: environmentName- required: true- schema:- type: string- - description: The SQL statement.- in: body- name: statement- required: true- schema:- type: string- - description:- The database type. Required if the port, host and database name- is not specified.- enum:- - MYSQL- - POSTGRES- - TIDB- - OCEANBASE- - SNOWFLAKE- - MSSQL- in: body- name: databaseType- schema:- type: string- - description: The instance host.- in: body- name: host- schema:- type: string- - description: The instance port.- in: body- name: port- schema:- type: string- - description: The database name in the instance.- in: body- name: databaseName- schema:- type: string- produces:- - application/json- responses:- "200":- description: OK- schema:- items:- $ref: "#/definitions/advisor.Advice"- type: array- "400":- description: Bad Request- schema:- $ref: "#/definitions/echo.HTTPError"- "500":- description: Internal Server Error- schema:- $ref: "#/definitions/echo.HTTPError"- summary: Check the SQL statement.- tags:- - SQL review-schemes:- - http-swagger: "2.0"diff --git a/docs/sqlservice/docs.go b/docs/sqlservice/docs.godeleted file mode 100644index d0c34f935d..0000000000--- a/docs/sqlservice/docs.go+++ /dev/null@@ -1,155 +0,0 @@-// Package sqlservice GENERATED BY SWAG; DO NOT EDIT-// This file was generated by swaggo/swag-package sqlservice--import "github.com/swaggo/swag"--const docTemplate = `{- "schemes": {{ marshal .Schemes }},- "swagger": "2.0",- "info": {- "description": "{{escape .Description}}",- "title": "{{.Title}}",- "termsOfService": "https://www.bytebase.com/terms",- "contact": {- "name": "API Support",- "url": "https://github.com/bytebase/bytebase/",- "email": "[email protected]"- },- "license": {- "name": "MIT",- "url": "https://github.com/bytebase/bytebase/blob/main/LICENSE"- },- "version": "{{.Version}}"- },- "host": "{{.Host}}",- "basePath": "{{.BasePath}}",- "paths": {- "/advise": {- "post": {- "description": "Parse and check the SQL statement according to the SQL review rules.",- "consumes": [- "application/json"- ],- "produces": [- "application/json"- ],- "tags": [- "SQL review"- ],- "summary": "Check the SQL statement.",- "parameters": [- {- "description": "The SQL statement.",- "name": "statement",- "in": "body",- "required": true,- "schema": {- "type": "string"- }- },- {- "enum": [- "MYSQL",- "POSTGRES",- "TIDB"- ],- "description": "The database type.",- "name": "databaseType",- "in": "body",- "required": true,- "schema": {- "type": "string"- }- },- {- "enum": [- "bb.sql-review.prod",- "bb.sql-review.dev"- ],- "description": "The SQL check template id. Required if the config is not specified.",- "name": "templateId",- "in": "body",- "schema": {- "type": "string"- }- },- {- "description": "The SQL check config override string in YAML format. Check https://github.com/bytebase/bytebase/tree/main/plugin/advisor/config/sql-review.override.yaml for example. Required if the template is not specified.",- "name": "override",- "in": "body",- "schema": {- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "OK",- "schema": {- "type": "array",- "items": {- "$ref": "#/definitions/advisor.Advice"- }- }- },- "400": {- "description": "Bad Request",- "schema": {- "$ref": "#/definitions/echo.HTTPError"- }- },- "500": {- "description": "Internal Server Error",- "schema": {- "$ref": "#/definitions/echo.HTTPError"- }- }- }- }- }- },- "definitions": {- "advisor.Advice": {- "type": "object",- "properties": {- "code": {- "description": "Code is the SQL check error code.",- "type": "integer"- },- "content": {- "type": "string"- },- "status": {- "description": "Status is the SQL check result. Could be \"SUCCESS\", \"WARN\", \"ERROR\"",- "type": "string"- },- "title": {- "type": "string"- }- }- },- "echo.HTTPError": {- "type": "object",- "properties": {- "message": {}- }- }- }-}`--// SwaggerInfo holds exported Swagger Info so clients can modify it-var SwaggerInfo = &swag.Spec{- Version: "1.0",- Host: "localhost:8081",- BasePath: "/v1/",- Schemes: []string{"http"},- Title: "Bytebase SQL Service",- Description: "The OpenAPI for Bytebase SQL Service.",- InfoInstanceName: "swagger",- SwaggerTemplate: docTemplate,-}--func init() {- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)-}diff --git a/docs/sqlservice/swagger.yaml b/docs/sqlservice/swagger.yamldeleted file mode 100644index bd0824a839..0000000000--- a/docs/sqlservice/swagger.yaml+++ /dev/null@@ -1,92 +0,0 @@-basePath: /v1/-definitions:- advisor.Advice:- properties:- code:- description: Code is the SQL check error code.- type: integer- content:- type: string- status:- description: Status is the SQL check result. Could be "SUCCESS", "WARN", "ERROR"- type: string- title:- type: string- type: object- echo.HTTPError:- properties:- message: {}- type: object-host: localhost:8081-info:- contact:- email: [email protected]- name: API Support- url: https://github.com/bytebase/bytebase/- description: The OpenAPI for Bytebase SQL Service.- license:- name: MIT- url: https://github.com/bytebase/bytebase/blob/main/LICENSE- termsOfService: https://www.bytebase.com/terms- title: Bytebase SQL Service- version: "1.0"-paths:- /advise:- post:- consumes:- - application/json- description: Parse and check the SQL statement according to the SQL review rules.- parameters:- - description: The SQL statement.- in: body- name: statement- required: true- schema:- type: string- - description: The database type.- enum:- - MYSQL- - POSTGRES- - TIDB- in: body- name: databaseType- required: true- schema:- type: string- - description: The SQL check template id. Required if the config is not specified.- enum:- - bb.sql-review.prod- - bb.sql-review.dev- in: body- name: templateId- schema:- type: string- - description: The SQL check config override string in YAML format. Check https://github.com/bytebase/bytebase/tree/main/plugin/advisor/config/sql-review.override.yaml- for example. Required if the template is not specified.- in: body- name: override- schema:- type: string- produces:- - application/json- responses:- "200":- description: OK- schema:- items:- $ref: '#/definitions/advisor.Advice'- type: array- "400":- description: Bad Request- schema:- $ref: '#/definitions/echo.HTTPError'- "500":- description: Internal Server Error- schema:- $ref: '#/definitions/echo.HTTPError'- summary: Check the SQL statement.- tags:- - SQL review-schemes:-- http-swagger: "2.0"diff --git a/go.mod b/go.modindex 57cc6926fa..5f64a759a3 100644--- a/go.mod+++ b/go.mod@@ -69,8 +69,6 @@ require (github.com/sourcegraph/jsonrpc2 v0.2.0github.com/spf13/cobra v1.8.0github.com/stretchr/testify v1.9.0- github.com/swaggo/echo-swagger v1.4.1- github.com/swaggo/swag v1.16.3github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75github.com/vjeantet/ldapserver v1.0.1github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8@@ -117,7 +115,6 @@ require (github.com/dvsekhvalnov/jose2go v1.6.0 // indirectgithub.com/elastic/elastic-transport-go/v8 v8.5.0 // indirectgithub.com/felixge/httpsnoop v1.0.4 // indirect- github.com/ghodss/yaml v1.0.0 // indirectgithub.com/go-asn1-ber/asn1-ber v1.5.5 // indirectgithub.com/go-jose/go-jose/v3 v3.0.3 // indirectgithub.com/go-logr/logr v1.4.1 // indirect@@ -165,7 +162,6 @@ require (github.com/ryanuber/go-glob v1.0.0 // indirectgithub.com/shoenig/go-m1cpu v0.1.6 // indirectgithub.com/stoewer/go-strcase v1.3.0 // indirect- github.com/swaggo/files/v2 v2.0.0 // indirectgithub.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a // indirectgithub.com/tklauser/go-sysconf v0.3.12 // indirectgithub.com/tklauser/numcpus v0.6.1 // indirect@@ -184,7 +180,6 @@ require (golang.org/x/mod v0.16.0 // indirectgolang.org/x/sys v0.18.0 // indirectgolang.org/x/term v0.18.0 // indirect- gopkg.in/yaml.v2 v2.4.0 // indirect)require (@@ -194,7 +189,6 @@ require (cloud.google.com/go/iam v1.1.7 // indirectcloud.google.com/go/longrunning v0.5.6 // indirectgithub.com/ClickHouse/ch-go v0.61.5 // indirect- github.com/KyleBanks/depth v1.2.1 // indirectgithub.com/andybalholm/brotli v1.1.0 // indirectgithub.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirectgithub.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect@@ -233,10 +227,6 @@ require (github.com/go-ini/ini v1.67.0 // indirectgithub.com/go-mysql-org/go-mysql v1.6.0 // indirectgithub.com/go-ole/go-ole v1.3.0 // indirect- github.com/go-openapi/jsonpointer v0.19.6 // indirect- github.com/go-openapi/jsonreference v0.20.2 // indirect- github.com/go-openapi/spec v0.20.9 // indirect- github.com/go-openapi/swag v0.22.4 // indirectgithub.com/goccy/go-json v0.10.2 // indirectgithub.com/gogo/protobuf v1.3.2 // indirectgithub.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect@@ -252,7 +242,6 @@ require (github.com/jackc/pgpassfile v1.0.0 // indirectgithub.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirectgithub.com/jmespath/go-jmespath v0.4.0 // indirect- github.com/josharian/intern v1.0.0 // indirectgithub.com/klauspost/compress v1.17.7 // indirectgithub.com/labstack/gommon v0.4.2 // indirectgithub.com/lestrrat-go/blackmagic v1.0.2 // indirect@@ -261,7 +250,6 @@ require (github.com/lestrrat-go/iter v1.0.2 // indirectgithub.com/lestrrat-go/option v1.0.1 // indirectgithub.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a // indirect- github.com/mailru/easyjson v0.7.7 // indirectgithub.com/mattn/go-colorable v0.1.13 // indirectgithub.com/mattn/go-isatty v0.0.20 // indirectgithub.com/montanaflynn/stats v0.7.0 // indirectdiff --git a/go.sum b/go.sumindex 2d5423e1cf..dcd41fee9f 100644--- a/go.sum+++ b/go.sum@@ -57,8 +57,6 @@ github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM=github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=-github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc=-github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE=github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0=github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=@@ -319,7 +317,6 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSgithub.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=-github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=@@ -362,20 +359,6 @@ github.com/go-mysql-org/go-mysql v1.6.0/go.mod h1:GX0clmylJLdZEYAojPCDTCvwZxbTBrgithub.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78=-github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=-github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=-github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=-github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs=-github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo=-github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE=-github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k=-github.com/go-openapi/spec v0.20.9 h1:xnlYNQAwKd2VQRRfwTEI0DcK+2cbuvI/0c7jx3gA8/8=-github.com/go-openapi/spec v0.20.9/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA=-github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=-github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=-github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=-github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU=-github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=@@ -666,8 +649,6 @@ github.com/jmoiron/sqlx v1.3.3/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLgithub.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible h1:jdpOPRN1zP63Td1hDQbZW73xKmzDvZHzVdNYxhnTMDA=github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A=-github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=-github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=@@ -706,7 +687,6 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvgithub.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=-github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=@@ -753,11 +733,6 @@ github.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a h1:N9zuLhTvBSRt0ggithub.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a/go.mod h1:JKx41uQRwqlTZabZc+kILPrO/3jlKnQ2Z8b7YiVw5cE=github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=-github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=-github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=-github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=-github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=-github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=@@ -1071,12 +1046,6 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29ogithub.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=-github.com/swaggo/echo-swagger v1.4.1 h1:Yf0uPaJWp1uRtDloZALyLnvdBeoEL5Kc7DtnjzO/TUk=-github.com/swaggo/echo-swagger v1.4.1/go.mod h1:C8bSi+9yH2FLZsnhqMZLIZddpUxZdBYuNHbtaS1Hljc=-github.com/swaggo/files/v2 v2.0.0 h1:hmAt8Dkynw7Ssz46F6pn8ok6YmGZqHSVLZ+HQM7i0kw=-github.com/swaggo/files/v2 v2.0.0/go.mod h1:24kk2Y9NYEJ5lHuCra6iVwkMjIekMCaFq/0JQj66kyM=-github.com/swaggo/swag v1.16.3 h1:PnCYjPCah8FK4I26l2F/KQ4yz3sILcVUN3cTlBFA9Pg=-github.com/swaggo/swag v1.16.3/go.mod h1:DImHIuOFXKpMFAQjcC7FG4m3Dg4+QuUgUzJmKjI/gRk=github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a h1:J/YdBZ46WKpXsxsW93SG+q0F8KI+yFrcIDT4c/RNoc4=github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a/go.mod h1:h4xBhSNtOeEosLJ4P7JyKXX7Cabg7AVkWCK5gV2vOrM=github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=@@ -1514,7 +1483,6 @@ gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLksgopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=-gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=@@ -1545,7 +1513,6 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=-gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=diff --git a/scripts/.goreleaser-for-darwin.yaml b/scripts/.goreleaser-for-darwin.yamlindex 443c3ef9c9..4d9e0f7b53 100644--- a/scripts/.goreleaser-for-darwin.yaml+++ b/scripts/.goreleaser-for-darwin.yaml@@ -25,7 +25,6 @@ builds:goos:- darwingoarch:- - amd64- arm64- id: climain: ./backend/bin/bb@@ -49,7 +48,13 @@ builds:goos:- darwingoarch:- - amd64- arm64++archives:+- format: tar.gz+ id: bytebase+ builds: [server,cli]+ name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"+snapshot:name_template: "{{ incpatch .Version }}-next"diff --git a/scripts/.goreleaser-for-linux.yaml b/scripts/.goreleaser-for-linux.yamlindex 28325f63d1..f740cc0eb5 100644--- a/scripts/.goreleaser-for-linux.yaml+++ b/scripts/.goreleaser-for-linux.yaml@@ -24,7 +24,6 @@ builds:- BUILD_USER="unknown"goos:- linux- # We currently cannot run mysqlbinlog on arm64.goarch:- amd64overrides:@@ -53,7 +52,6 @@ builds:- BUILD_USER="unknown"goos:- linux- # We currently cannot run mysqlbinlog on arm64.goarch:- amd64overrides:@@ -61,5 +59,12 @@ builds:goarch: amd64env:- CC=gcc++archives:+- format: tar.gz+ id: bytebase+ builds: [server,cli]+ name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"+snapshot:name_template: "{{ incpatch .Version }}-next"diff --git a/scripts/.goreleaser-release.yaml b/scripts/.goreleaser-release.yamlindex a568052b83..b003b2b8fb 100644--- a/scripts/.goreleaser-release.yaml+++ b/scripts/.goreleaser-release.yaml@@ -11,7 +11,6 @@ release:mode: appendextra_files:- glob: ./bytebase-build/**/*- - glob: ./bytebase-build/checksums.txtname_template: "Release {{.Tag}}"header: |# What's Changed