Skip to content

[public-api] Generate Go and TS Connect protos with buf #13550

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 6, 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
13 changes: 13 additions & 0 deletions components/public-api/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ plugins:
out: go
opt:
- module=github.com/gitpod-io/gitpod/public-api
- name: connect-go
out: go
opt:
- module=github.com/gitpod-io/gitpod/public-api

- name: es
out: typescript/src
opt: target=ts
path: typescript/node_modules/.bin/protoc-gen-es
- name: connect-web
out: typescript/src
opt: target=ts
path: typescript/node_modules/.bin/protoc-gen-connect-web
5 changes: 0 additions & 5 deletions components/public-api/generate.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash



if [ -n "$DEBUG" ]; then
set -x
fi
Expand All @@ -11,7 +9,6 @@ set -o nounset
set -o pipefail

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

# include protoc bash functions
# shellcheck disable=SC1090,SC1091
Expand All @@ -23,6 +20,4 @@ lint

protoc_buf_generate

typescript_protoc "$COMPONENTS_DIR" "gitpod/v1"

update_license
5 changes: 0 additions & 5 deletions components/public-api/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions components/public-api/go.sum

This file was deleted.

1 change: 1 addition & 0 deletions components/public-api/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/gitpod-io/gitpod/public-api
go 1.19

require (
github.com/bufbuild/connect-go v1.0.0
github.com/gitpod-io/gitpod/common-go v0.0.0-00010101000000-000000000000
google.golang.org/grpc v1.49.0
google.golang.org/protobuf v1.28.1
Expand Down
4 changes: 3 additions & 1 deletion components/public-api/go/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 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.

176 changes: 176 additions & 0 deletions components/public-api/go/v1/v1connect/prebuilds.connect.go

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

Loading