From 1169cb3e87ea265803e6a9529a7c5ed5dd79ecda Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Wed, 23 Sep 2026 17:17:53 +0800 Subject: [PATCH] =?UTF-8?q?chore=E2=AC=86=EF=B8=8F:=20build=20with=20Go=20?= =?UTF-8?q?1.27?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit govulncheck reports seven standard-library vulnerabilities against go1.26.5 that this code actually reaches, and none against go1.27.1. It also clears the way for the next go-admin-core release, which declares go 1.27.1: a module cannot require a dependency whose language version is newer than its own. Doing it in its own commit keeps that upgrade to a one-line dependency bump. All three modules in the tree move together. test/e2e-apporder requires the main module, so leaving it behind fails the moment the main module declares a newer version - "updates to go.mod needed", before a test runs. example/app-order only requires go-admin-core and would still have resolved, but it was declaring 1.25.13, two releases back and out of support. The workflows pin the Go version explicitly instead of reading go.mod, and the four READMEs state it under environmental requirements, so those move with it too. No dependency changes - go mod tidy leaves every go.sum untouched. --- .github/workflows/build.yml | 2 +- .github/workflows/go.yml | 4 ++-- README.Zh-cn.md | 2 +- README.ja-JP.md | 2 +- README.md | 2 +- README.zh-TW.md | 2 +- example/app-order/go.mod | 2 +- go.mod | 2 +- test/e2e-apporder/go.mod | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 53a381d3..6babaa7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: 1.26.5 + go-version: 1.27.1 - name: Tidy run: go mod tidy diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5fe7b7a7..76768623 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -107,10 +107,10 @@ jobs: steps: - - name: Set up Go 1.26 + - name: Set up Go 1.27 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: 1.26.5 + go-version: 1.27.1 id: go - name: Check out code into the Go module directory diff --git a/README.Zh-cn.md b/README.Zh-cn.md index 847bd2fa..ede3ce97 100644 --- a/README.Zh-cn.md +++ b/README.Zh-cn.md @@ -106,7 +106,7 @@ antd 体验(go-admin-pro):[https://antd.go-admin.pro](https://antd.go-admi ### 环境要求 -go 1.26.5 +go 1.27.1 node版本: v22+(推荐 v24 LTS) diff --git a/README.ja-JP.md b/README.ja-JP.md index 332493d9..f02eba09 100644 --- a/README.ja-JP.md +++ b/README.ja-JP.md @@ -106,7 +106,7 @@ antd デモ(go-admin-pro):[https://antd.go-admin.pro](https://antd.go-admi ### 動作要件 -go 1.26.5 +go 1.27.1 node バージョン: v22 以上(v24 LTS 推奨) diff --git a/README.md b/README.md index 9f8f2f92..87faae68 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ At the same time, a series of tutorials including videos and documents are provi ### Environmental requirements -go 1.26.5 +go 1.27.1 nodejs: v22+ (v24 LTS recommended) diff --git a/README.zh-TW.md b/README.zh-TW.md index d641cc19..e6971264 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -106,7 +106,7 @@ antd 體驗(go-admin-pro):[https://antd.go-admin.pro](https://antd.go-admi ### 環境需求 -go 1.26.5 +go 1.27.1 node 版本: v22+(建議 v24 LTS) diff --git a/example/app-order/go.mod b/example/app-order/go.mod index 7aed2dd5..4c5c07b7 100644 --- a/example/app-order/go.mod +++ b/example/app-order/go.mod @@ -1,6 +1,6 @@ module github.com/go-admin-team/example-app-order -go 1.25.13 +go 1.27.1 require ( github.com/gin-gonic/gin v1.12.0 diff --git a/go.mod b/go.mod index d2d981ba..c67afb3e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go-admin -go 1.26.5 +go 1.27.1 require ( github.com/alibaba/sentinel-golang v1.0.4 diff --git a/test/e2e-apporder/go.mod b/test/e2e-apporder/go.mod index c1a9b53b..a1c66819 100644 --- a/test/e2e-apporder/go.mod +++ b/test/e2e-apporder/go.mod @@ -1,6 +1,6 @@ module go-admin-e2e-apporder -go 1.26.5 +go 1.27.1 require ( github.com/glebarez/go-sqlite v1.22.0