]> git.puffer.fish Git - matthieu/nova.git/commitdiff
fix proto bazel generation
authorMatthieu Pignolet <20992787+MatthieuCoder@users.noreply.github.com>
Wed, 4 Aug 2021 17:35:45 +0000 (21:35 +0400)
committerMatthieu Pignolet <20992787+MatthieuCoder@users.noreply.github.com>
Wed, 4 Aug 2021 17:35:45 +0000 (21:35 +0400)
rest-ratelimiter/protos/BUILD.bazel [new file with mode: 0644]

diff --git a/rest-ratelimiter/protos/BUILD.bazel b/rest-ratelimiter/protos/BUILD.bazel
new file mode 100644 (file)
index 0000000..6cd212a
--- /dev/null
@@ -0,0 +1,24 @@
+load("@rules_proto//proto:defs.bzl", "proto_library")
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
+
+proto_library(
+    name = "nova_ratelimit_v1_proto",
+    srcs = ["nova.ratelimit.v1.proto"],
+    visibility = ["//visibility:public"],
+)
+
+go_proto_library(
+    name = "nova_ratelimit_v1_go_proto",
+    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
+    importpath = "github.com/discordnova/nova/rest-ratelimiter/protos",
+    proto = ":nova_ratelimit_v1_proto",
+    visibility = ["//visibility:public"],
+)
+
+go_library(
+    name = "protos",
+    embed = [":nova_ratelimit_v1_go_proto"],
+    importpath = "github.com/discordnova/nova/rest-ratelimiter/protos",
+    visibility = ["//visibility:public"],
+)