From 2884c889e72b77310e73f1319e03f6c95ab6aa41 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Mon, 8 Apr 2024 10:14:38 -0600 Subject: [PATCH] Switch to new rules_swift proto rules (#19) Signed-off-by: Matt Robinson --- BuildEventProtocol/BUILD.bazel | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/BuildEventProtocol/BUILD.bazel b/BuildEventProtocol/BUILD.bazel index 620d927..5b3c607 100644 --- a/BuildEventProtocol/BUILD.bazel +++ b/BuildEventProtocol/BUILD.bazel @@ -1,18 +1,19 @@ +load( + "@build_bazel_rules_swift//proto:proto.bzl", + "swift_proto_library_group", +) load( "@build_bazel_rules_swift//swift:swift.bzl", "swift_module_alias", - "swift_proto_library", ) # This is public API for the repository. package(default_visibility = ["//visibility:public"]) -swift_proto_library( +swift_proto_library_group( name = "build_event_stream_proto_swift_internal", + proto = "@io_bazel//src/main/java/com/google/devtools/build/lib/buildeventstream/proto:build_event_stream_proto", visibility = ["//visibility:public"], - deps = [ - "@io_bazel//src/main/java/com/google/devtools/build/lib/buildeventstream/proto:build_event_stream_proto", - ], ) # Rename the Swift module so we can use `import build_event_stream_proto` instead