github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/pkg/plugin/grpcecosystem/grpcgateway/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "grpcgateway", 5 srcs = ["protoc-gen-grpc-gateway.go"], 6 importpath = "github.com/stackb/rules_proto/pkg/plugin/grpcecosystem/grpcgateway", 7 visibility = ["//visibility:public"], 8 deps = [ 9 "//pkg/protoc", 10 "@bazel_gazelle//label:go_default_library", 11 ], 12 ) 13 14 filegroup( 15 name = "all_files", 16 testonly = True, 17 srcs = [ 18 "BUILD.bazel", 19 ] + glob(["*.go"]), 20 visibility = ["//pkg:__pkg__"], 21 ) 22 23 go_test( 24 name = "grpcgateway_test", 25 srcs = ["protoc-gen-grpc-gateway_test.go"], 26 embed = [":grpcgateway"], 27 deps = ["//pkg/plugintest"], 28 )