Skip to content

Commit

Permalink
Add an explicit self-reference local_repository
Browse files Browse the repository at this point in the history
To keep the build working on Bazel 7. See bazelbuild/bazel#19973 (comment) for more info.

PiperOrigin-RevId: 578968403
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Nov 2, 2023
1 parent f98f38b commit da7245c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit da7245c

Please sign in to comment.