From ff91b25494e353e61d6ad37aafb70f45c328b1ce Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Thu, 16 Feb 2023 09:02:19 -0800 Subject: [PATCH] Use generated Conformance proto for Bazel targets. PiperOrigin-RevId: 510158778 --- csharp/BUILD.bazel | 2 ++ csharp/src/Google.Protobuf.Conformance/BUILD.bazel | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/csharp/BUILD.bazel b/csharp/BUILD.bazel index 23fbe411f9..2af7d067af 100644 --- a/csharp/BUILD.bazel +++ b/csharp/BUILD.bazel @@ -65,9 +65,11 @@ inline_sh_test( srcs = [ ":srcs", "src/Google.Protobuf.sln", + "//conformance:conformance_csharp_proto", "//csharp/src/Google.Protobuf.Conformance:srcs", ], cmd = """ + cp $(rootpath //conformance:conformance_csharp_proto) `dirname $(location src/Google.Protobuf.sln)`/Google.Protobuf.Conformance/ pushd `dirname $(location src/Google.Protobuf.sln)`/.. dotnet restore src/Google.Protobuf.sln dotnet build -c Release src/Google.Protobuf.sln diff --git a/csharp/src/Google.Protobuf.Conformance/BUILD.bazel b/csharp/src/Google.Protobuf.Conformance/BUILD.bazel index 358c44c108..0b5e2c8f83 100644 --- a/csharp/src/Google.Protobuf.Conformance/BUILD.bazel +++ b/csharp/src/Google.Protobuf.Conformance/BUILD.bazel @@ -1,3 +1,4 @@ +load("//:protobuf.bzl", "internal_csharp_proto_library") load("//build_defs:internal_shell.bzl", "inline_sh_binary") load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix") @@ -37,7 +38,6 @@ CONFORMANCE_DEPS = [ filegroup( name = "srcs", srcs = [ - "Conformance.pb.cs", "Program.cs", "Google.Protobuf.Conformance.csproj", ], @@ -88,7 +88,6 @@ pkg_files( srcs = [ "BUILD.bazel", "Google.Protobuf.Conformance.csproj", - "Conformance.pb.cs", "Program.cs", ], strip_prefix = strip_prefix.from_root(""),