Skip to content

[public-api] Switch go codegen to buf #13579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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