Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: go version (#16952)

Danny Xu8258b7589eb0
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index 4c06a5fe5d..ad0ef96352 100644
--- a/.github/workflows/backend-tests.yml
+++ b/.github/workflows/backend-tests.yml
@@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
- go-version: '1.24.4'
+ go-version: '1.24.5'
cache: false # Caching is slow.
- name: Verify go.mod is tidy
run: |
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
index c62242b894..a17a274cd2 100644
--- a/.github/workflows/golangci-lint.yml
+++ b/.github/workflows/golangci-lint.yml
@@ -24,10 +24,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
- go-version: '1.24.4'
+ go-version: '1.24.5'
cache: false # Caching is slow.
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
- version: v2.1.2
+ version: v2.3.0
args: --verbose -j 8 --timeout 30m --max-same-issues=30 --allow-parallel-runners
\ No newline at end of file
diff --git a/.github/workflows/test_link.yml b/.github/workflows/test_link.yml
index fbd0a6d13e..628498afe5 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@v5
with:
- go-version: '1.24.4'
+ go-version: '1.24.5'
cache: false # Caching is slow.
- name: Validate links
run: go test -timeout 600s -v ./scripts/... | tee test.log; exit ${PIPESTATUS[0]}
diff --git a/backend/common/cel.go b/backend/common/cel.go
index f278477ec1..ed4558492e 100644
--- a/backend/common/cel.go
+++ b/backend/common/cel.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/cel_test.go b/backend/common/cel_test.go
index 7bdd730455..99a823cc54 100644
--- a/backend/common/cel_test.go
+++ b/backend/common/cel_test.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/config.go b/backend/common/config.go
index b8bba60d0f..077323f048 100644
--- a/backend/common/config.go
+++ b/backend/common/config.go
@@ -1,5 +1,5 @@
// Package common provides common libraries for the service.
-package common
+package common //nolint:revive
// ReleaseMode is the mode for release, such as dev or release.
type ReleaseMode string
diff --git a/backend/common/config_dev.go b/backend/common/config_dev.go
index 50ba19278c..85eac2e86d 100644
--- a/backend/common/config_dev.go
+++ b/backend/common/config_dev.go
@@ -1,5 +1,6 @@
//go:build !release
+//nolint:revive
package common
func IsDev() bool {
diff --git a/backend/common/config_release.go b/backend/common/config_release.go
index 483078c481..7226531ec5 100644
--- a/backend/common/config_release.go
+++ b/backend/common/config_release.go
@@ -1,5 +1,6 @@
//go:build release
+//nolint:revive
package common
func IsDev() bool {
diff --git a/backend/common/context.go b/backend/common/context.go
index 164c2fba3e..5dc6ccedc3 100644
--- a/backend/common/context.go
+++ b/backend/common/context.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/db_schema_test.go b/backend/common/db_schema_test.go
index 1ab5f6ca87..3652122542 100644
--- a/backend/common/db_schema_test.go
+++ b/backend/common/db_schema_test.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/engine.go b/backend/common/engine.go
index 9dd3dfd132..8a05eb78a5 100644
--- a/backend/common/engine.go
+++ b/backend/common/engine.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/position.go b/backend/common/position.go
index edaa784b22..8d20a17552 100644
--- a/backend/common/position.go
+++ b/backend/common/position.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/resource_name.go b/backend/common/resource_name.go
index 0cdaa01e0e..14956406e5 100644
--- a/backend/common/resource_name.go
+++ b/backend/common/resource_name.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/resource_name_test.go b/backend/common/resource_name_test.go
index e58dfd4290..d54eb8b8eb 100644
--- a/backend/common/resource_name_test.go
+++ b/backend/common/resource_name_test.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/util.go b/backend/common/util.go
index cf0fd5b91e..6d77c973ac 100644
--- a/backend/common/util.go
+++ b/backend/common/util.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/common/util_test.go b/backend/common/util_test.go
index 007f89a5ae..461fb92791 100644
--- a/backend/common/util_test.go
+++ b/backend/common/util_test.go
@@ -1,3 +1,4 @@
+//nolint:revive
package common
import (
diff --git a/backend/plugin/db/util/connection.go b/backend/plugin/db/util/connection.go
index a3bc7efb50..e2a9aa8549 100644
--- a/backend/plugin/db/util/connection.go
+++ b/backend/plugin/db/util/connection.go
@@ -1,3 +1,4 @@
+//nolint:revive
package util
import (
diff --git a/backend/plugin/db/util/driverutil.go b/backend/plugin/db/util/driverutil.go
index 7c5fbf503f..bab6bd14da 100644
--- a/backend/plugin/db/util/driverutil.go
+++ b/backend/plugin/db/util/driverutil.go
@@ -1,4 +1,6 @@
// Package util provides the library for database drivers.
+//
+//nolint:revive
package util
import (
diff --git a/backend/plugin/db/util/sasl.go b/backend/plugin/db/util/sasl.go
index a9ed07a652..b15e39e39b 100644
--- a/backend/plugin/db/util/sasl.go
+++ b/backend/plugin/db/util/sasl.go
@@ -1,3 +1,4 @@
+//nolint:revive
package util
import (
diff --git a/backend/plugin/db/util/ssh.go b/backend/plugin/db/util/ssh.go
index 17e0920643..784df293b2 100644
--- a/backend/plugin/db/util/ssh.go
+++ b/backend/plugin/db/util/ssh.go
@@ -1,3 +1,4 @@
+//nolint:revive
package util
import (
diff --git a/backend/utils/member.go b/backend/utils/member.go
index cf2804aa78..de4bcb9847 100644
--- a/backend/utils/member.go
+++ b/backend/utils/member.go
@@ -1,3 +1,4 @@
+//nolint:revive
package utils
import (
diff --git a/go.mod b/go.mod
index 7c21abbf32..c683bd8a3f 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/bytebase/bytebase
-go 1.24.4
+go 1.24.5
// workaround mssql-docker default TLS cert negative serial number problem
// https://github.com/microsoft/mssql-docker/issues/895
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 44172a6a19..0ce709f6eb 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -10,7 +10,7 @@ COPY . .
RUN pnpm --dir ./frontend i
RUN pnpm --dir ./frontend release-docker
-FROM golang:1.24.4-alpine3.21 AS backend
+FROM golang:1.24.5-alpine3.21 AS backend
ARG VERSION
ARG GIT_COMMIT
ARG RELEASE="release"
diff --git a/scripts/Dockerfile.action b/scripts/Dockerfile.action
index 1aa9a4729a..9524143662 100644
--- a/scripts/Dockerfile.action
+++ b/scripts/Dockerfile.action
@@ -1,4 +1,4 @@
-FROM golang:1.24.4-alpine3.21 AS builder
+FROM golang:1.24.5-alpine3.21 AS builder
ARG VERSION
ARG GIT_COMMIT
WORKDIR /action-build
diff --git a/scripts/Dockerfile.action-debian b/scripts/Dockerfile.action-debian
index 3aea59789c..fc26faa6b6 100644
--- a/scripts/Dockerfile.action-debian
+++ b/scripts/Dockerfile.action-debian
@@ -1,4 +1,4 @@
-FROM golang:1.24.4-bookworm AS builder
+FROM golang:1.24.5-bookworm AS builder
ARG VERSION
ARG GIT_COMMIT
WORKDIR /action-build
diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.aws
index 1f00775a83..c3f98dc5c2 100644
--- a/scripts/Dockerfile.aws
+++ b/scripts/Dockerfile.aws
@@ -10,7 +10,7 @@ COPY . .
RUN pnpm --dir ./frontend i
RUN pnpm --dir ./frontend release-aws
-FROM golang:1.24.4-alpine3.21 AS backend
+FROM golang:1.24.5-alpine3.21 AS backend
ARG VERSION
ARG GIT_COMMIT
ARG RELEASE="release"