From 3bfa9b9784db17dcb58b9a6eb3b32e7d3d0edaa9 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Tue, 16 Jul 2024 10:00:26 -0700 Subject: [PATCH] Fix build breakage in new bzlmod test PiperOrigin-RevId: 652884366 --- .github/workflows/test_cpp.yml | 2 -- src/google/protobuf/compiler/BUILD.bazel | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_cpp.yml b/.github/workflows/test_cpp.yml index cc35286684..71583a48a1 100644 --- a/.github/workflows/test_cpp.yml +++ b/.github/workflows/test_cpp.yml @@ -38,8 +38,6 @@ jobs: version: Bazel7bzlmod image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e" targets: "//src/... //third_party/utf8_range/..." - # TODO: enable back command_line_interface_unittest after bug is fixed - exclude-targets: "-//src/google/protobuf/compiler:command_line_interface_unittest" - config: { name: "TCMalloc" } version: TcMalloc image: "us-docker.pkg.dev/protobuf-build/containers/test/linux/tcmalloc@sha256:1c5133455481f4d1bb8afa477029604f41f1a3c46cebe4d9958cf1af95b5c87c" diff --git a/src/google/protobuf/compiler/BUILD.bazel b/src/google/protobuf/compiler/BUILD.bazel index 02729619fd..3777e86ead 100644 --- a/src/google/protobuf/compiler/BUILD.bazel +++ b/src/google/protobuf/compiler/BUILD.bazel @@ -346,7 +346,9 @@ cc_binary( name = "fake_plugin", testonly = True, srcs = ["fake_plugin.cc"], + copts = COPTS, deps = [ + ":code_generator", ":plugin_cc_proto", "//src/google/protobuf", "//src/google/protobuf/io:io_win32",