mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-19 01:58:44 +08:00
* Add retag filter for protoc-gen-go * Delete .pb.go and make grpc find . -not -path './e/*' -name '*.pb.go' -delete && make grpc * make gen-resource-docs * Add comment listing the current consumers of open or hybrid api
60 lines
2.6 KiB
YAML
60 lines
2.6 KiB
YAML
version: v2
|
|
|
|
inputs:
|
|
- directory: .
|
|
exclude_paths:
|
|
# generated by buf-gogo.gen.yaml
|
|
- api/proto/teleport/attestation/
|
|
- api/proto/teleport/componentfeatures/
|
|
- api/proto/teleport/legacy/
|
|
- api/proto/teleport/mfa/v1/
|
|
- api/proto/teleport/usageevents/
|
|
- proto/teleport/lib/web/terminal/envelope.proto
|
|
# generated by buf-connect-go.gen.yaml
|
|
- proto/prehog/
|
|
# generated by buf-ts.gen.yaml, JS-only
|
|
- proto/teleport/web/
|
|
- directory: .
|
|
paths:
|
|
# excluded by buf-gogo.gen.yaml
|
|
- api/proto/teleport/legacy/client/proto/event.proto
|
|
- api/proto/teleport/legacy/client/proto/inventory.proto
|
|
- api/proto/teleport/legacy/client/proto/requestable_roles.proto
|
|
|
|
plugins:
|
|
# TODO(espadolini): get rid of protoopaque-retag-protoc-gen-go and switch the
|
|
# code generation back to opaque once there's no more tools that consume or
|
|
# make use of the open API. As of the time of writing, they should be
|
|
# build.assets/tooling/cmd/resource-ref-generator (reading source code) and
|
|
# github.com/gravitational/protoc-gen-terraform (generating source code that
|
|
# accesses exported fields).
|
|
- local:
|
|
- sh
|
|
- -c
|
|
- 'go run google.golang.org/protobuf/cmd/protoc-gen-go | "$( GOWORK=off go -C ./build.assets/tooling tool -n github.com/gravitational/teleport/build.assets/tooling/cmd/protoopaque-retag-protoc-gen-go )"'
|
|
out: .
|
|
opt:
|
|
- module=github.com/gravitational/teleport
|
|
- default_api_level=API_HYBRID
|
|
# needed by teleport/lib/teleterm/v1/usage_events.proto because we use
|
|
# managed mode for the go package name there
|
|
- Mprehog/v1alpha/connect.proto=github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha;prehogv1alpha
|
|
# needed by proto/accessraph/v1alpha/access_graph_service.go because it imports it for
|
|
# usage events
|
|
- Mprehog/v1alpha/teleport.proto=github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha;prehogv1alpha
|
|
strategy: all
|
|
- local:
|
|
- go
|
|
- run
|
|
- google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
|
out: .
|
|
opt:
|
|
- module=github.com/gravitational/teleport
|
|
# needed by teleport/lib/teleterm/v1/usage_events.proto because we use
|
|
# managed mode for the go package name there
|
|
- Mprehog/v1alpha/connect.proto=github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha;prehogv1alpha
|
|
# needed by proto/accessraph/v1alpha/access_graph_service.go because it imports it for
|
|
# usage events
|
|
- Mprehog/v1alpha/teleport.proto=github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha;prehogv1alpha
|
|
strategy: all
|