Skip to content

Commit

Permalink
chore: upgrade buf and go mod versions, update README and CI/CD Go ve…
Browse files Browse the repository at this point in the history
…rsion

- 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.
  • Loading branch information
yuuki798 committed Oct 18, 2024
1 parent e3bad8c commit 1bc39ab
Show file tree
Hide file tree
Showing 81 changed files with 2,235 additions and 6,330 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buf-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: load Go 1.19 env
- name: load Go 1.22 env
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.22
id: go

- name: checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: load Go 1.19 env
- name: load Go 1.22 env
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.22
id: go

- name: checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.22

- name: Go Build Cache (lint)
uses: actions/cache@v3
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,30 @@

## 前置步骤

#### linux

```shell
//安装 编译所需的插件
//包括 buf protoc-gen-grpc-gateway protoc-gen-openapiv2 protoc-gen-go-grpc protoc-gen-go
//在 tools.go 中控制 要安装的插件列表,使用 go module 管理插件版本
make install-tools
```

#### windows

如果使用goland,建议安装插件:buf、Protocol Buffers Support,以消除proto无法识别到的报警。

```
go mod tidy
buf generate
```



### 配置网络

https://goproxy.cn/

## 依赖

- [go-task](https://taskfile.dev/installation/)
Expand Down
Loading

0 comments on commit 1bc39ab

Please sign in to comment.