Skip to content

Commit 1bc39ab

Browse files
committed
chore: upgrade buf and go mod versions, update README and CI/CD Go version
- Upgraded buf version to enhance performance and compatibility. - Updated go.mod to use the latest dependencies. - Revised README to reflect the latest changes in buf and module usage. - Updated CI/CD pipeline to use the latest Go version for consistent builds and testing.
1 parent e3bad8c commit 1bc39ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2235
-6330
lines changed

.github/workflows/buf-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
name: Build
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: load Go 1.19 env
19+
- name: load Go 1.22 env
2020
uses: actions/setup-go@v3
2121
with:
22-
go-version: 1.19
22+
go-version: 1.22
2323
id: go
2424

2525
- name: checkout

.github/workflows/buf.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
name: Build
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: load Go 1.19 env
11+
- name: load Go 1.22 env
1212
uses: actions/setup-go@v3
1313
with:
14-
go-version: 1.19
14+
go-version: 1.22
1515
id: go
1616

1717
- name: checkout

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Go
2424
uses: actions/setup-go@v3
2525
with:
26-
go-version: 1.19
26+
go-version: 1.22
2727

2828
- name: Go Build Cache (lint)
2929
uses: actions/cache@v3

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,30 @@
55

66
## 前置步骤
77

8+
#### linux
9+
810
```shell
911
//安装 编译所需的插件
1012
//包括 buf protoc-gen-grpc-gateway protoc-gen-openapiv2 protoc-gen-go-grpc protoc-gen-go
1113
//在 tools.go 中控制 要安装的插件列表,使用 go module 管理插件版本
1214
make install-tools
1315
```
1416

17+
#### windows
18+
19+
如果使用goland,建议安装插件:buf、Protocol Buffers Support,以消除proto无法识别到的报警。
20+
21+
```
22+
go mod tidy
23+
buf generate
24+
```
25+
26+
27+
28+
### 配置网络
29+
30+
https://goproxy.cn/
31+
1532
## 依赖
1633

1734
- [go-task](https://taskfile.dev/installation/)

0 commit comments

Comments
 (0)