From c7ed01bfe7a12b8d8001aabde92dd99538372561 Mon Sep 17 00:00:00 2001 From: CJACK Date: Mon, 16 Feb 2026 16:52:05 +0800 Subject: [PATCH] chore: Standardize Go version to 1.24 across Dockerfile, go.mod, GitHub Actions, and documentation. --- .github/workflows/release-artifacts.yml | 2 +- DEPLOY.en.md | 2 +- DEPLOY.md | 2 +- Dockerfile | 2 +- README.MD | 2 +- README.en.md | 2 +- go.mod | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index f520016..5fd262f 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.25.x" + go-version: "1.24.x" - name: Setup Node uses: actions/setup-node@v4 diff --git a/DEPLOY.en.md b/DEPLOY.en.md index c1a1fe5..503efa7 100644 --- a/DEPLOY.en.md +++ b/DEPLOY.en.md @@ -13,7 +13,7 @@ This guide is aligned with the current Go codebase. ## 0. Prerequisites -- Go 1.25+ +- Go 1.24+ - Node.js 20+ (only if you need to build WebUI locally) - `config.json` or `DS2API_CONFIG_JSON` diff --git a/DEPLOY.md b/DEPLOY.md index 170eecd..1ccc080 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -13,7 +13,7 @@ ## 0. 前置要求 -- Go 1.25+ +- Go 1.24+ - Node.js 20+(仅在需要本地构建 WebUI 时) - `config.json` 或 `DS2API_CONFIG_JSON` diff --git a/Dockerfile b/Dockerfile index ffb4fc4..3199cfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm ci COPY webui ./ RUN npm run build -FROM golang:1.25 AS go-builder +FROM golang:1.24 AS go-builder WORKDIR /app COPY go.mod go.sum* ./ RUN go mod download diff --git a/README.MD b/README.MD index c2b82bf..84adb97 100644 --- a/README.MD +++ b/README.MD @@ -51,7 +51,7 @@ ### 1) 本地运行 -要求:Go 1.25+ +要求:Go 1.24+ ```bash git clone https://github.com/CJackHwang/ds2api.git diff --git a/README.en.md b/README.en.md index 1f507b7..3c3b69d 100644 --- a/README.en.md +++ b/README.en.md @@ -51,7 +51,7 @@ You can override mapping via `claude_mapping` or `claude_model_mapping` in confi ### 1) Local run -Requirement: Go 1.25+ +Requirement: Go 1.24+ ```bash git clone https://github.com/CJackHwang/ds2api.git diff --git a/go.mod b/go.mod index 1d47c76..060a56a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module ds2api -go 1.25 +go 1.24 require ( github.com/andybalholm/brotli v1.0.6