Skip to content

Commit c0c214c

Browse files
easyCZroboquat
authored andcommitted
[public-api] Switch go codegen to buf
1 parent 297db4f commit c0c214c

File tree

13 files changed

+44
-710
lines changed

13 files changed

+44
-710
lines changed

components/public-api/buf.gen.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1
2+
plugins:
3+
- name: go
4+
out: go
5+
opt:
6+
- module=github.com/gitpod-io/gitpod/public-api
7+
- name: go-grpc
8+
out: go
9+
opt:
10+
- module=github.com/gitpod-io/gitpod/public-api

components/public-api/generate.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ COMPONENTS_DIR="$ROOT_DIR"/components
1717
# shellcheck disable=SC1090,SC1091
1818
source "$ROOT_DIR"/scripts/protoc-generator.sh
1919

20+
install_dependencies
21+
2022
lint
2123

22-
install_dependencies
23-
go_protoc "$COMPONENTS_DIR" "gitpod/v1"
24-
mkdir -p go/v1
25-
mv go/gitpod/v1/*.pb.go go/v1
26-
rm -rf go/gitpod
24+
protoc_buf_generate
25+
2726
typescript_protoc "$COMPONENTS_DIR" "gitpod/v1"
2827

2928
update_license

components/public-api/go/v1/pagination.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/prebuilds.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/prebuilds_grpc.pb.go

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/workspaces.pb.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/workspaces_grpc.pb.go

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/google/rpc/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

components/public-api/google/rpc/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)