chore: Standardize Go version to 1.24 across Dockerfile, go.mod, GitHub Actions, and documentation.

This commit is contained in:
CJACK
2026-02-16 16:52:05 +08:00
parent dec61b8008
commit c7ed01bfe7
7 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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`

View File

@@ -13,7 +13,7 @@
## 0. 前置要求
- Go 1.25+
- Go 1.24+
- Node.js 20+(仅在需要本地构建 WebUI 时)
- `config.json``DS2API_CONFIG_JSON`

View File

@@ -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

View File

@@ -51,7 +51,7 @@
### 1) 本地运行
要求Go 1.25+
要求Go 1.24+
```bash
git clone https://github.com/CJackHwang/ds2api.git

View File

@@ -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

2
go.mod
View File

@@ -1,6 +1,6 @@
module ds2api
go 1.25
go 1.24
require (
github.com/andybalholm/brotli v1.0.6