Repository: protocolbuffers/protobuf (language: python)

Issue:
Address warning regarding incorrectly-terminated heredoc in `src/google/protobuf/compiler/test_plugin_injection.bzl`



Discussion / hints:
Can you rebase?

Fix patch:
diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake
deleted file mode 100644
index e806f5dd8a30..000000000000
--- a/cmake/dependencies.cmake
+++ /dev/null
@@ -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")
-
-


Test patch:
diff --git a/src/google/protobuf/compiler/test_plugin_injection.bzl b/src/google/protobuf/compiler/test_plugin_injection.bzl
index aec25441e806..1ff815c621ad 100644
--- a/src/google/protobuf/compiler/test_plugin_injection.bzl
+++ b/src/google/protobuf/compiler/test_plugin_injection.bzl
@@ -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,