Skip to content

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

chore: upgrade Go from 1.24.5 to 1.25.0 (#17325)

Danny Xufdd278db68f1
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index ad0ef96352..226a55ddf6 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.5'
+ go-version: '1.25.0'
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 a17a274cd2..5359e50192 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.5'
+ go-version: '1.25.0'
cache: false # Caching is slow.
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
- version: v2.3.0
+ version: v2.4.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 628498afe5..76f8abdd47 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.5'
+ go-version: '1.25.0'
cache: false # Caching is slow.
- name: Validate links
run: go test -timeout 600s -v ./scripts/... | tee test.log; exit ${PIPESTATUS[0]}
diff --git a/go.mod b/go.mod
index ea23c3d8b3..a2db1bc8e6 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/bytebase/bytebase
-go 1.24.5
+go 1.25.0
// 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 3fb79d6749..ce9cbc767e 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.5-alpine3.21 AS backend
+FROM golang:1.25.0-alpine3.21 AS backend
ARG VERSION
ARG GIT_COMMIT
ARG RELEASE="release"
diff --git a/scripts/Dockerfile.action b/scripts/Dockerfile.action
index 9524143662..020bfcc4ab 100644
--- a/scripts/Dockerfile.action
+++ b/scripts/Dockerfile.action
@@ -1,4 +1,4 @@
-FROM golang:1.24.5-alpine3.21 AS builder
+FROM golang:1.25.0-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 fc26faa6b6..302b695fae 100644
--- a/scripts/Dockerfile.action-debian
+++ b/scripts/Dockerfile.action-debian
@@ -1,4 +1,4 @@
-FROM golang:1.24.5-bookworm AS builder
+FROM golang:1.25.0-bookworm AS builder
ARG VERSION
ARG GIT_COMMIT
WORKDIR /action-build
diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.aws
index ce471c1d61..4aea28cd6c 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.5-alpine3.21 AS backend
+FROM golang:1.25.0-alpine3.21 AS backend
ARG VERSION
ARG GIT_COMMIT
ARG RELEASE="release"