Skip to content

chore(bazel): remove the unused ts_grpcgateway codegen rule#291

Open
philz3906 wants to merge 1 commit into
mainfrom
dev/philz3906/remove-ts-grpcgateway-rule
Open

chore(bazel): remove the unused ts_grpcgateway codegen rule#291
philz3906 wants to merge 1 commit into
mainfrom
dev/philz3906/remove-ts-grpcgateway-rule

Conversation

@philz3906

Copy link
Copy Markdown
Contributor

What

Removes the now-unused ts_grpcgateway legacy grpc-gateway TypeScript codegen rule and its tooling. This codegen has been superseded by the protobuf-es path (the es_proto rule + protoc-gen-es), and no target references ts_grpcgateway any longer.

Removed:

  • the ts_grpcgateway rule in bazel/ts-rules.bzl (and the now-unused proto_compile_impl load — es_proto is untouched).
  • the //bazel:ts-grpcgateway-plugin proto_plugin.
  • the protoc-gen-grpc-gateway-ts Go tool dependency: its blank import in tools/tools.go, the now-empty tools/go.{mod,sum}, and the isolated go_tool_deps extension + its use_repo in MODULE.bazel.

Verification

  • es_proto targets still build (//bazel/protoc-gen-es/tests:fixture_public_es, //service/common/protos:common_protos_es_proto, //processor/protos:processor_es_proto).
  • bazel mod tidy is clean and the full //... graph loads with no ts_grpcgateway references.
  • MODULE.bazel.lock carries no protoc-gen-grpc-gateway-ts references.

Ordering

⚠️ This rule still had a downstream consumer. Land this after that consumer has merged the removal of its last ts_grpcgateway() targets, so a re-pin of this module doesn't break it.

🤖 Generated with Claude Code

The legacy grpc-gateway TypeScript codegen has been superseded by the
protobuf-es codegen (the es_proto rule + protoc-gen-es). The ts_grpcgateway
rule and its tooling are no longer referenced by any target, so remove them:

- the ts_grpcgateway rule from bazel/ts-rules.bzl (and the now-unused
  proto_compile_impl load); es_proto is untouched
- the //bazel:ts-grpcgateway-plugin proto_plugin
- the protoc-gen-grpc-gateway-ts Go tool dependency: its blank import in
  tools/tools.go, the now-empty tools/go.{mod,sum}, and the isolated
  go_tool_deps extension + its use_repo in MODULE.bazel

Verified: es_proto targets still build, `bazel mod tidy` is clean, and the
full //... graph loads with no ts_grpcgateway references remaining.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant