Skip to content

Commit

Permalink
Configure protobuf in all WORKSPACES
Browse files Browse the repository at this point in the history
  • Loading branch information
comius committed Nov 21, 2024
1 parent 7ef99be commit 965a406
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/build_file_generation/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,8 @@ load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps
# This rule loads and compiles various go dependencies that running gazelle
# for python requirements.
_py_gazelle_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions examples/multi_python_versions/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_
rules_shell_dependencies()

rules_shell_toolchains()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions examples/pip_parse/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ load("@pypi//:requirements.bzl", "install_deps")

# Initialize repositories for all packages in requirements_lock.txt.
install_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions examples/pip_parse_vendored/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ pip_parse(
load("//:requirements.bzl", "install_deps")

install_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions examples/pip_repository_annotations/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ pip_parse(
load("@pip//:requirements.bzl", "install_deps")

install_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions gazelle/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ load("//:deps.bzl", _py_gazelle_deps = "gazelle_deps")

# gazelle:repository_macro deps.bzl%go_deps
_py_gazelle_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions tests/integration/compile_pip_requirements/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ python_register_toolchains(
name = "python39",
python_version = "3.9",
)

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ load("@pypi//:requirements.bzl", "install_deps")

# Initialize repositories for all packages in requirements_lock.txt.
install_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions tests/integration/custom_commands/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ python_register_toolchains(
name = "python_3_11",
python_version = "3.11",
)

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions tests/integration/ignore_root_user_error/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ http_archive(
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions tests/integration/pip_parse/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ pip_parse(
load("@pip_empty//:requirements.bzl", "install_deps")

install_deps()

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
5 changes: 5 additions & 0 deletions tests/integration/py_cc_toolchain_registered/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ python_register_toolchains(
name = "python_3_11",
python_version = "3.11",
)

# Needed by rules_cc
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

0 comments on commit 965a406

Please sign in to comment.