Address warning regarding incorrectly-terminated heredoc in `src/google/protobuf/compiler/test_plugin_injection.bzl` (#18238)

Closes #18238

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18238 from tempoz:tempoz-fix-heredoc 87644ab5e9
PiperOrigin-RevId: 686625159
pull/18865/head
Zoey Greer 5 months ago committed by Copybara-Service
parent 90c4487d27
commit fbe6168a02
  1. 34
      cmake/dependencies.cmake
  2. 6
      src/google/protobuf/compiler/test_plugin_injection.bzl

@ -1,34 +0,0 @@
# Auto-generated by @//cmake:make_dependencies
#
# This file contains lists of external dependencies based on our Bazel
# config. It should be included from a hand-written CMake file that uses
# them.
#
# Changes to this file will be overwritten based on Bazel definitions.
if(${CMAKE_VERSION} VERSION_GREATER 3.10 OR ${CMAKE_VERSION} VERSION_EQUAL 3.10)
include_guard()
endif()
set(abseil-cpp-version "20230802.1")
set(bazel_skylib-version "1.7.0")
set(jsoncpp-version "1.9.5")
set(rules_cc-version "0.0.13")
set(rules_fuzzing-version "0.5.2")
set(rules_java-version "7.11.1")
set(rules_jvm_external-version "6.3")
set(rules_kotlin-version "1.9.6")
set(rules_license-version "1.0.0")
set(rules_pkg-version "1.0.1")
set(rules_python-version "0.28.0")
set(rules_rust-version "0.51.0")
set(platforms-version "0.0.8")
set(zlib-version "1.3.1")
set(bazel_features-version "1.17.0")
set(rules_shell-version "0.2.0")
set(googletest-version "1.14.0")
set(rules_buf-version "0.3.0")
set(rules_testing-version "0.6.0")
set(rules_proto-version "4.0.0")

@ -31,8 +31,9 @@
load("//build_defs:cpp_opts.bzl", "COPTS")
# This works around https://github.com/bazelbuild/bazel/issues/19124 by using a generated header to
# inject the Bazel path of the test plugins. The simpler alternative is broken in Bazel 6.3.0,
# which is to just inject these via copts.
# inject the Bazel path of the test plugins.
# TODO: Replace this with simpler alternative injecting these via copts once we drop
# support for Bazel 6.3.0.
def inject_plugin_paths(name):
hdr = name + ".h"
native.genrule(
@ -51,6 +52,7 @@ cat <<'EOF' >$(OUTS)
#define GOOGLE_PROTOBUF_FAKE_PLUGIN_PATH "$(rootpath :fake_plugin)"
#endif // GOOGLE_PROTOBUF_COMPILER_TEST_PLUGIN_PATHS_H__
EOF
""",
visibility = ["//visibility:private"],
testonly = True,

Loading…
Cancel
Save