Add an explicit self-reference `local_repository`

To keep the build working on Bazel 7. See https://github.com/bazelbuild/bazel/issues/19973#issuecomment-1787814450 for more info.

PiperOrigin-RevId: 578968403
diff --git a/WORKSPACE b/WORKSPACE
index 37994f8..487c933 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,5 +1,10 @@
 workspace(name = "com_google_protobuf")
 
+# An explicit self-reference to work around changes in Bazel 7.0
+# See https://github.com/bazelbuild/bazel/issues/19973#issuecomment-1787814450
+# buildifier: disable=duplicated-name
+local_repository(name = "com_google_protobuf", path = ".")
+
 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
 
 local_repository(