Skip to content

Commit

Permalink
Switch buf to use local tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Jun 6, 2022
1 parent 3d090b4 commit 5e12be2
Show file tree
Hide file tree
Showing 24 changed files with 132 additions and 70 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yaml
Expand Up @@ -43,8 +43,6 @@ jobs:
- uses: "actions/setup-go@v2"
with:
go-version: "^1.16"
- name: "Install local Go Protobuf plugins"
run: "go install github.com/envoyproxy/protoc-gen-validate@v0.6.7"
- uses: "actions/checkout@v2"
- uses: "bufbuild/buf-setup-action@v0.6.0"
with:
Expand Down
9 changes: 5 additions & 4 deletions buf.gen.yaml
Expand Up @@ -2,18 +2,19 @@
---
version: "v1"
plugins:
- remote: "buf.build/library/plugins/go:v1.27.1-1"
- name: "go"
out: "proto"
opt: "paths=source_relative"
- remote: "buf.build/library/plugins/go-grpc:v1.1.0-2"
- name: "go-grpc"
out: "proto"
opt: "paths=source_relative"
- name: "validate"
out: "proto"
opt: "paths=source_relative,lang=go"
- remote: "buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.6.0-1"
- name: "grpc-gateway"
out: "proto"
opt: "paths=source_relative"
- remote: "buf.build/grpc-ecosystem/plugins/openapiv2:v2.6.0-1"
- name: "openapiv2"
out: "proto"
strategy: all
opt: "allow_merge=true"
1 change: 1 addition & 0 deletions go.mod
Expand Up @@ -13,6 +13,7 @@ require (
golang.org/x/sys v0.0.0-20210910150752-751e447fb3d0 // indirect
google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af
google.golang.org/grpc v1.40.0
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
10 changes: 10 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/v0/core.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/v0/developer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions proto/authzed/api/v0/developer_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/v1/core.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/authzed/api/v1/openapi.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions proto/authzed/api/v1/permission_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e12be2

Please sign in to comment.