Skip to content
Open
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
10 changes: 1 addition & 9 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ go_sdk.download(
go_sdk.nogo(nogo = "//:my_nogo")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")

go_deps.from_file(go_mod = "//:go.mod")

# Go dependency overrides are only honored when declared by the root module, so
Expand All @@ -121,6 +120,7 @@ go_deps_dev.module_override(
go_deps_dev.gazelle_default_attributes(
directives = ["gazelle:proto disable"],
)

use_repo(
go_deps,
"com_github_alicebob_miniredis_v2",
Expand Down Expand Up @@ -204,14 +204,6 @@ use_repo(
"org_uber_go_zap",
)

go_tool_deps = use_extension(
"@gazelle//:extensions.bzl",
"go_deps",
isolate = True,
)
go_tool_deps.from_file(go_mod = "//tools:go.mod")
use_repo(go_tool_deps, "com_github_grpc_ecosystem_protoc_gen_grpc_gateway_ts")

## Nodejs
node = use_extension(
"@rules_nodejs//nodejs:extensions.bzl",
Expand Down
14 changes: 0 additions & 14 deletions bazel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@rules_proto_grpc//:defs.bzl", "proto_plugin")

# https://github.com/grpc-ecosystem/protoc-gen-grpc-gateway-ts
proto_plugin(
name = "ts-grpcgateway-plugin",
options = [
"enable_styling_check=false,loglevel=debug,logtostderr=false",
],
outputs = [
"{protopath}.pb.ts",
# "/../fetch.pb.ts",
],
tool = "@com_github_grpc_ecosystem_protoc_gen_grpc_gateway_ts//:protoc-gen-grpc-gateway-ts",
visibility = ["//visibility:public"],
)

# protobuf-es codegen (protoc-gen-es) with optional descriptor-filter passes
# (remove_deprecated, strip_imports, visibility_level). The tool wraps stock
# @bufbuild/protoc-gen-es; see //bazel/protoc-gen-es. All options
Expand Down
17 changes: 0 additions & 17 deletions bazel/ts-rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,13 @@ load(
"@rules_proto_grpc//:defs.bzl",
"ProtoPluginInfo",
"proto_compile_attrs",
"proto_compile_impl",
"proto_compile_toolchains",
)
load(
"@rules_proto_grpc//internal:compile.bzl",
"proto_compile",
)

ts_grpcgateway = rule(
implementation = proto_compile_impl,
attrs = dict(
proto_compile_attrs,
_plugins = attr.label_list(
providers = [ProtoPluginInfo],
default = [
Label("//bazel:ts-grpcgateway-plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
toolchains = proto_compile_toolchains,
)

# protobuf-es (protoc-gen-es) TypeScript codegen. Always ESM
# (import_extension=js). `remove_deprecated = True` strips `[deprecated=true]`
# elements. No `grpc` attr is needed: protoc-gen-es always emits a GenService
Expand Down
31 changes: 0 additions & 31 deletions tools/go.mod

This file was deleted.

61 changes: 0 additions & 61 deletions tools/go.sum

This file was deleted.

8 changes: 0 additions & 8 deletions tools/tools.go

This file was deleted.

Loading