mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-02 07:25:26 +08:00
chore: Standardize Go version to 1.24 across Dockerfile, go.mod, GitHub Actions, and documentation.
This commit is contained in:
2
.github/workflows/release-artifacts.yml
vendored
2
.github/workflows/release-artifacts.yml
vendored
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
## 0. 前置要求
|
||||
|
||||
- Go 1.25+
|
||||
- Go 1.24+
|
||||
- Node.js 20+(仅在需要本地构建 WebUI 时)
|
||||
- `config.json` 或 `DS2API_CONFIG_JSON`
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
### 1) 本地运行
|
||||
|
||||
要求:Go 1.25+
|
||||
要求:Go 1.24+
|
||||
|
||||
```bash
|
||||
git clone https://github.com/CJackHwang/ds2api.git
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user