Skip to content

Commit f920d03

Browse files
authored
Merge pull request #352 from lin-snow/chore/lint-and-mockery
chore: 清零 golangci-lint 报错,mockery pin 抬到支持 Go 1.27 的版本
2 parents 69ea5b0 + 9c520cf commit f920d03

16 files changed

Lines changed: 32 additions & 23 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ body:
9595
attributes:
9696
label: Environment
9797
description: OS, browser (for UI bugs), Go version if building from source.
98-
placeholder: macOS 14.5 / Chrome 124 / Go 1.26.0
98+
placeholder: macOS 14.5 / Chrome 124 / Go 1.27.0
9999

100100
- type: textarea
101101
id: logs

.github/workflows/docker-test-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Setup Go
6363
uses: actions/setup-go@v7
6464
with:
65-
go-version: "1.26.4"
65+
go-version: "1.27.0"
6666
cache-dependency-path: "**/go.sum"
6767

6868
- name: Set Go proxy

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Setup Go Environment
8484
uses: actions/setup-go@v7
8585
with:
86-
go-version: "1.26.4"
86+
go-version: "1.27.0"
8787
cache-dependency-path: "**/go.sum"
8888
- name: Set Go proxy
8989
run: go env -w GOPROXY=https://proxy.golang.org,direct

.github/workflows/release_zigcc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
contents: read
88

99
env:
10-
GO_VERSION: "1.26.4"
10+
GO_VERSION: "1.27.0"
1111
NODE_VERSION: "26"
1212
ZIG_VERSION: "latest"
1313

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup Go
3838
uses: actions/setup-go@v7
3939
with:
40-
go-version: "1.26.4"
40+
go-version: "1.27.0"
4141
cache-dependency-path: "**/go.sum"
4242

4343
- name: Set Go proxy

.golangci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ linters:
2222
linters:
2323
- errcheck
2424
- staticcheck
25+
# go-openai 把 ChatCompletionRequest.MaxTokens 标为 deprecated(推荐 MaxCompletionTokens),
26+
# 但 max_completion_tokens 是 OpenAI 自家的新字段:本仓的 OpenAI 兼容路径主要面向
27+
# DeepSeek / Qwen / Moonshot / Ollama 等只认 max_tokens 的服务端,换过去会让这些端点
28+
# 报错或直接忽略上限。故刻意保留 max_tokens,仅屏蔽这一条弃用告警(见 provider_openai.go 注释)。
29+
- path: ^internal/agent/provider_openai\.go$
30+
linters:
31+
- staticcheck
32+
text: SA1019.*MaxTokens
2533

2634
formatters:
2735
# Enable specific formatter.

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Compact guidance for AI agents working in the Ech0 repository.
44

55
## What this is
66

7-
Ech0 is a self-hosted personal microblog platform. Single Go binary serves both the REST API and the embedded Vue SPA. Backend: Go 1.26+ (Gin + Wire DI + GORM + SQLite via CGO). Frontend: Vue 3 + Vite + TypeScript + UnoCSS under `web/`.
7+
Ech0 is a self-hosted personal microblog platform. Single Go binary serves both the REST API and the embedded Vue SPA. Backend: Go 1.27+ (Gin + Wire DI + GORM + SQLite via CGO). Frontend: Vue 3 + Vite + TypeScript + UnoCSS under `web/`.
88

99
**Additional packages:** `hub/` (Vue 3 public directory site), `site/` (React Router marketing/docs site).
1010

@@ -113,7 +113,7 @@ In-process async event bus. Publishers at `internal/event/publisher`, subscriber
113113
- Env vars parsed from `.env` (loaded via `joho/godotenv`). See `.env.example` for the full set.
114114
- Defaults target `./data/` for SQLite + uploads. Docker images mount `/app/data`.
115115
- Server port: 6277 (default).
116-
- Node.js 26.0.0+, pnpm 10+, Go 1.26.0+, C toolchain for CGO.
116+
- Node.js 26.0.0+, pnpm 10+, Go 1.27.0+, C toolchain for CGO.
117117

118118
## Key in-repo docs
119119

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Project overview
66

7-
Ech0 is a self-hosted personal microblog (timeline) platform. It is shipped as a single Go binary that serves both the REST API and the built SPA. Backend is Go 1.26+ (Gin + Wire DI + GORM + SQLite via CGO), frontend is Vue 3 + Vite + TypeScript + UnoCSS under `web/`. Two satellite web projects also live in-repo: `hub/` (Vue 3 public-directory site) and `site/` (React Router marketing/docs site) — they are independent of the Go binary.
7+
Ech0 is a self-hosted personal microblog (timeline) platform. It is shipped as a single Go binary that serves both the REST API and the built SPA. Backend is Go 1.27+ (Gin + Wire DI + GORM + SQLite via CGO), frontend is Vue 3 + Vite + TypeScript + UnoCSS under `web/`. Two satellite web projects also live in-repo: `hub/` (Vue 3 public-directory site) and `site/` (React Router marketing/docs site) — they are independent of the Go binary.
88

99
**For a full architecture walkthrough, read `docs/dev/architecture-overview.md` first** — it covers the layered backend, business domains, Agent/MCP capability layers, event subsystem, infra modules, and `pkg/` libraries end-to-end.
1010

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To keep collaboration smooth, please read this document and follow the conventio
1414

1515
### Backend
1616

17-
- Go `1.26.0+`
17+
- Go `1.27.0+`
1818
- A working C toolchain (CGO is used, e.g. for SQLite)
1919

2020
Common commands (repository root):

docker/build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY web/ .
2020
RUN pnpm run build --mode production
2121

2222
# =================== 后端构建阶段 ===================
23-
FROM golang:1.26.4-alpine AS backend-builder
23+
FROM golang:1.27.0-alpine AS backend-builder
2424

2525
RUN apk add --no-cache git ca-certificates gcc musl-dev
2626

0 commit comments

Comments
 (0)