Skip to content

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

chore: go 1.22.5 (#12702)

Danny Xudd7a13d0e67b
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index 8efcdda82b..224d85edf1 100644
--- a/.github/workflows/backend-tests.yml
+++ b/.github/workflows/backend-tests.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
- go-version: 1.22.4
+ go-version: 1.22.5
cache: false
- name: Verify go.mod is tidy
run: |
diff --git a/.github/workflows/test_link.yml b/.github/workflows/test_link.yml
index cefc5648fd..b7c0ac2e73 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.22.4
+ go-version: 1.22.5
cache: false
- name: Validate links
run: go test -timeout 600s -v ./scripts/... | tee test.log; exit ${PIPESTATUS[0]}
diff --git a/README.md b/README.md
index 90dadcaedc..d8a1d9f210 100644
--- a/README.md
+++ b/README.md
@@ -259,7 +259,7 @@ Below diagram describes a typical mapping between an engineering org and the cor
### Prerequisites
-- [Go](https://golang.org/doc/install) (1.22.4 or later)
+- [Go](https://golang.org/doc/install) (1.22.5 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.
```bash
diff --git a/go.mod b/go.mod
index d6eeac470f..76bf20cf95 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/bytebase/bytebase
-go 1.22.4
+go 1.22.5
require (
cloud.google.com/go/bigquery v1.61.0
diff --git a/scripts/.air.toml b/scripts/.air.toml
index 282e448f59..00300231f9 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -11,8 +11,8 @@ cmd = """
CGO_ENABLED=1 \
go build \
-p=8 \
- -ldflags="-extldflags='-ld_classic' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=$(git rev-parse HEAD)'" \
- --tags "" \
+ -ldflags="-X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=$(git rev-parse HEAD)'" \
+ --tags "" -gcflags="all=-N -l" \
-o ./.air/bytebase ./backend/bin/server/main.go"""
delay = 500
exclude_dir = [
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 181536816f..246e1dbdd6 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -18,14 +18,14 @@ COPY . .
RUN pnpm --dir frontend install --frozen-lockfile
RUN pnpm --dir frontend release-docker
-FROM golang:1.22.4 as backend
+FROM golang:1.22.5 as backend
ADD go.mod go.sum /
RUN go mod download
ARG TARGETARCH
ARG VERSION="development"
ARG VERSION_SUFFIX=""
-ARG GO_VERSION="1.22.4"
+ARG GO_VERSION="1.22.5"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.aws
index 8833778223..cdb8c2c567 100644
--- a/scripts/Dockerfile.aws
+++ b/scripts/Dockerfile.aws
@@ -19,13 +19,13 @@ COPY . .
RUN pnpm --dir frontend install --frozen-lockfile
RUN pnpm --dir frontend release-aws
-FROM golang:1.22.4 as backend
+FROM golang:1.22.5 as backend
ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
ARG VERSION_SUFFIX=""
-ARG GO_VERSION="1.22.4"
+ARG GO_VERSION="1.22.5"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depot
index 074346b816..afb6cc1504 100644
--- a/scripts/Dockerfile.depot
+++ b/scripts/Dockerfile.depot
@@ -1,10 +1,10 @@
-FROM golang:1.22.4 as backend
+FROM golang:1.22.5 as backend
ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
ARG VERSION_SUFFIX=""
-ARG GO_VERSION="1.22.4"
+ARG GO_VERSION="1.22.5"
ARG GIT_COMMIT="unknown"
ARG BUILD_TIME="unknown"
ARG BUILD_USER="unknown"
diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demo
index fce059e97c..ddab7e400b 100644
--- a/scripts/Dockerfile.render-demo
+++ b/scripts/Dockerfile.render-demo
@@ -16,11 +16,11 @@ COPY . .
ENV BB_GIT_COMMIT_ID_FE="${RENDER_GIT_COMMIT}"
RUN cd frontend && pnpm install --frozen-lockfile && pnpm release-docker
-FROM golang:1.22.4 as backend
+FROM golang:1.22.5 as backend
ADD go.mod go.sum /
RUN go mod download
-ARG GO_VERSION="1.22.4"
+ARG GO_VERSION="1.22.5"
# RENDER_GIT_COMMIT is a render.com provided env var during build.
# https://render.com/docs/environment-variables
ARG RENDER_GIT_COMMIT="unknown"
diff --git a/scripts/build_bytebase.sh b/scripts/build_bytebase.sh
index e2865dda6f..c4a4de24e4 100755
--- a/scripts/build_bytebase.sh
+++ b/scripts/build_bytebase.sh
@@ -14,9 +14,9 @@ OUTPUT_DIR=$(mkdir_output "$1")
OUTPUT_BINARY=$OUTPUT_DIR/bytebase
GO_VERSION=`go version | { read _ _ v _; echo ${v#go}; }`
-if [ "$(version ${GO_VERSION})" -lt "$(version 1.22.4)" ];
+if [ "$(version ${GO_VERSION})" -lt "$(version 1.22.5)" ];
then
- echo "${RED}Precheck failed.${NC} Require go version >= 1.22.4. Current version ${GO_VERSION}."; exit 1;
+ echo "${RED}Precheck failed.${NC} Require go version >= 1.22.5. Current version ${GO_VERSION}."; exit 1;
fi
NODE_VERSION=`node -v | { read v; echo ${v#v}; }`