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: align Go toolchain to 1.27.3 (#21663)
p0nyafffc8914a00
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 328e581fb7..0fb77f906d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -48,7 +48,7 @@ jobs:- uses: actions/checkout@v7- uses: actions/setup-go@v7with:- go-version: '1.27.1'+ go-version: '1.27.3'cache: false # Caching is slow.- name: Verify go.mod is tidyrun: |@@ -76,13 +76,13 @@ jobs:- uses: actions/checkout@v7- uses: actions/setup-go@v7with:- go-version: '1.27.1'+ go-version: '1.27.3'cache: false # Caching is slow.- name: Install golangci-lintuses: golangci/golangci-lint-action@v9with:# renovate: datasource=github-releases depName=golangci/golangci-lint- version: v2.13.2+ version: v2.14.0install-only: trueskip-cache: true- name: Verify Go version compatibility@@ -135,7 +135,7 @@ jobs:working-directory: frontend- uses: actions/setup-go@v7with:- go-version: '1.27.1'+ go-version: '1.27.3'cache: false # Caching is slow.- name: Validate linksrun: go test -timeout 600s -v ./scripts/...diff --git a/.golangci.yaml b/.golangci.yamlindex cef079ceea..bcbef2054b 100644--- a/.golangci.yaml+++ b/.golangci.yaml@@ -57,6 +57,8 @@ linters:revive:enable-all-rules: truerules:+ - name: multiline-if-init+ disabled: true- name: file-headerdisabled: true- name: line-length-limitdiff --git a/backend/api/v1/instance_service_converter_test.go b/backend/api/v1/instance_service_converter_test.goindex 2917c4961a..1a8b2b276f 100644--- a/backend/api/v1/instance_service_converter_test.go+++ b/backend/api/v1/instance_service_converter_test.go@@ -366,7 +366,7 @@ func TestDataSourceDestinationClassifiesEveryField(t *testing.T) {}classified := make(map[string]bool, len(inDestination)+len(notDestination))- for _, name := range append(append([]string{}, inDestination...), notDestination...) {+ for _, name := range slices.Concat(inDestination, notDestination) {require.False(t, classified[name], "field %q listed twice", name)classified[name] = true}diff --git a/backend/plugin/parser/tsql/query_span_extractor.go b/backend/plugin/parser/tsql/query_span_extractor.goindex 4a378588d5..dece095136 100644--- a/backend/plugin/parser/tsql/query_span_extractor.go+++ b/backend/plugin/parser/tsql/query_span_extractor.go@@ -3,6 +3,7 @@ package tsqlimport ("context""reflect"+ "slices""strings""unicode"@@ -1337,7 +1338,7 @@ func (q *omniQuerySpanExtractor) cloneForSubquery() *omniQuerySpanExtractor {ignoreCaseSensitive: q.ignoreCaseSensitive,gCtx: q.gCtx,ctes: append([]*base.PseudoTable{}, q.ctes...),- outerTableSources: append(append([]base.TableSource{}, q.outerTableSources...), q.tableSourcesFrom...),+ outerTableSources: slices.Concat(q.outerTableSources, q.tableSourcesFrom),predicateColumns: make(base.SourceColumnSet),viewResolutionStack: cloneViewResolutionStack(q.viewResolutionStack),},diff --git a/backend/tests/sql_dml_table_scope_test.go b/backend/tests/sql_dml_table_scope_test.goindex 06f1bc830b..25ae9ef2ca 100644--- a/backend/tests/sql_dml_table_scope_test.go+++ b/backend/tests/sql_dml_table_scope_test.go@@ -3,6 +3,7 @@ package testsimport ("context""fmt"+ "slices""strings""testing"@@ -302,7 +303,7 @@ func TestSQLEditorTableScopedDMLEdgeCases(t *testing.T) {}))ra.NoError(err)policy := policyResp.Msg- policy.Bindings = append(append([]*v1pb.Binding{}, baselineBindings...), extra...)+ policy.Bindings = slices.Concat(baselineBindings, extra)_, err = ctl.projectServiceClient.SetIamPolicy(ctx, connect.NewRequest(&v1pb.SetIamPolicyRequest{Resource: ctl.project.Name,Policy: policy,diff --git a/go.mod b/go.modindex 9825ef498c..2c7f52aaa3 100644--- a/go.mod+++ b/go.mod@@ -1,6 +1,6 @@module github.com/bytebase/bytebase-go 1.27.1+go 1.27.3// workaround mssql-docker default TLS cert negative serial number problem// https://github.com/microsoft/mssql-docker/issues/895diff --git a/scripts/build_init.sh b/scripts/build_init.shindex 25c4f60669..9afbe69ce7 100644--- a/scripts/build_init.sh+++ b/scripts/build_init.sh@@ -30,7 +30,7 @@ mkdir_output() {}# Go and node version checks.-TARGET_GO_VERSION="1.27.1"+TARGET_GO_VERSION="1.27.3"GO_VERSION=`go version | { read _ _ v _; echo ${v#go}; }`if [ "$(version ${GO_VERSION})" -lt "$(version $TARGET_GO_VERSION)" ];then