Skip to content

Commit bbfc28d

Browse files
easyCZroboquat
authored andcommitted
[public-api] Generate Go and TS Connect protos with buf
1 parent ea2f740 commit bbfc28d

31 files changed

+2884
-10173
lines changed

components/public-api/buf.gen.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,16 @@ plugins:
88
out: go
99
opt:
1010
- module=github.com/gitpod-io/gitpod/public-api
11+
- name: connect-go
12+
out: go
13+
opt:
14+
- module=github.com/gitpod-io/gitpod/public-api
15+
16+
- name: es
17+
out: typescript/src
18+
opt: target=ts
19+
path: typescript/node_modules/.bin/protoc-gen-es
20+
- name: connect-web
21+
out: typescript/src
22+
opt: target=ts
23+
path: typescript/node_modules/.bin/protoc-gen-connect-web

components/public-api/generate.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
4-
53
if [ -n "$DEBUG" ]; then
64
set -x
75
fi
@@ -11,7 +9,6 @@ set -o nounset
119
set -o pipefail
1210

1311
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/../../
14-
COMPONENTS_DIR="$ROOT_DIR"/components
1512

1613
# include protoc bash functions
1714
# shellcheck disable=SC1090,SC1091
@@ -23,6 +20,4 @@ lint
2320

2421
protoc_buf_generate
2522

26-
typescript_protoc "$COMPONENTS_DIR" "gitpod/v1"
27-
2823
update_license

components/public-api/go.mod

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

components/public-api/go.sum

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

components/public-api/go/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/gitpod-io/gitpod/public-api
33
go 1.19
44

55
require (
6+
github.com/bufbuild/connect-go v1.0.0
67
github.com/gitpod-io/gitpod/common-go v0.0.0-00010101000000-000000000000
78
google.golang.org/grpc v1.49.0
89
google.golang.org/protobuf v1.28.1

components/public-api/go/go.sum

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/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/v1connect/prebuilds.connect.go

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

0 commit comments

Comments
 (0)