Skip to content

Commit

Permalink
[public-api] Switch go codegen to buf
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ authored and roboquat committed Oct 5, 2022
1 parent 297db4f commit c0c214c
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 710 deletions.
10 changes: 10 additions & 0 deletions components/public-api/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
plugins:
- name: go
out: go
opt:
- module=github.com/gitpod-io/gitpod/public-api
- name: go-grpc
out: go
opt:
- module=github.com/gitpod-io/gitpod/public-api
9 changes: 4 additions & 5 deletions components/public-api/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ COMPONENTS_DIR="$ROOT_DIR"/components
# shellcheck disable=SC1090,SC1091
source "$ROOT_DIR"/scripts/protoc-generator.sh

install_dependencies

lint

install_dependencies
go_protoc "$COMPONENTS_DIR" "gitpod/v1"
mkdir -p go/v1
mv go/gitpod/v1/*.pb.go go/v1
rm -rf go/gitpod
protoc_buf_generate

typescript_protoc "$COMPONENTS_DIR" "gitpod/v1"

update_license
2 changes: 1 addition & 1 deletion components/public-api/go/v1/pagination.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 components/public-api/go/v1/prebuilds.pb.go

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

8 changes: 5 additions & 3 deletions components/public-api/go/v1/prebuilds_grpc.pb.go

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

4 changes: 3 additions & 1 deletion components/public-api/go/v1/workspaces.pb.go

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

22 changes: 13 additions & 9 deletions components/public-api/go/v1/workspaces_grpc.pb.go

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

201 changes: 0 additions & 201 deletions components/public-api/google/rpc/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions components/public-api/google/rpc/README.md

This file was deleted.

Loading

0 comments on commit c0c214c

Please sign in to comment.