Skip to content

Commit b5bda48

Browse files
committed
Upgrade and pin rules_cc and rules_java
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 3b7a869 commit b5bda48

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

bazel/repositories.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ def _com_llvm_lib():
120120
def _cc_deps():
121121
# Dependencies with native bazel build files.
122122

123+
_bazel_repo("rules_cc")
123124
_bazel_repo("upb")
124125
_bazel_repo("com_google_protobuf", patches = ["//bazel/external:protobuf_text_format.patch", "//bazel/external:protobuf_warning.patch"], patch_args = ["-p1"])
125126
_bazel_repo("com_github_grpc_grpc", patches = ["//bazel/external:grpc.patch", "//bazel/external:grpc_go_toolchain.patch", "//bazel/external:grpc_test_visibility.patch"], patch_args = ["-p1"])
126127

127128
_bazel_repo("boringssl", patches = ["//bazel/external:boringssl.patch"], patch_args = ["-p0"])
128129
_bazel_repo("com_google_benchmark")
129130
_bazel_repo("com_google_googletest")
131+
# _bazel_repo("com_google_googletest", repo_mapping = {"@abseil-cpp": "@com_google_absl"})
130132
_bazel_repo("com_github_gflags_gflags")
131133
_bazel_repo("com_github_google_glog")
132134
_bazel_repo("com_google_absl")
@@ -241,6 +243,7 @@ def _pl_cc_toolchain_deps():
241243
def _pl_deps():
242244
_bazel_repo("bazel_gazelle")
243245
_bazel_repo("io_bazel_rules_go", patches = ["//bazel/external:rules_go.patch"], patch_args = ["-p1"])
246+
_bazel_repo("rules_java")
244247
_bazel_repo("io_bazel_rules_scala")
245248
_bazel_repo("rules_jvm_external")
246249
_bazel_repo("rules_foreign_cc")

bazel/repository_locations.bzl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ REPOSITORY_LOCATIONS = dict(
451451
urls = ["http://musl.libc.org/releases/musl-1.2.3.tar.gz"],
452452
manual_license_name = "libc/musl",
453453
),
454+
rules_cc = dict(
455+
sha256 = "abc605dd850f813bb37004b77db20106a19311a96b2da1c92b789da529d28fe1",
456+
strip_prefix = "rules_cc-0.0.17",
457+
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.17/rules_cc-0.0.17.tar.gz"],
458+
),
454459
rules_foreign_cc = dict(
455460
sha256 = "6041f1374ff32ba711564374ad8e007aef77f71561a7ce784123b9b4b88614fc",
456461
strip_prefix = "rules_foreign_cc-0.8.0",
@@ -461,6 +466,12 @@ REPOSITORY_LOCATIONS = dict(
461466
strip_prefix = "rules_python-0.26.0",
462467
urls = ["https://github.com/bazelbuild/rules_python/archive/refs/tags/0.26.0.tar.gz"],
463468
),
469+
rules_java = dict(
470+
sha256 = "a64ab04616e76a448c2c2d8165d836f0d2fb0906200d0b7c7376f46dd62e59cc",
471+
urls = [
472+
"https://github.com/bazelbuild/rules_java/releases/download/8.6.2/rules_java-8.6.2.tar.gz",
473+
],
474+
),
464475
rules_jvm_external = dict(
465476
urls = ["https://github.com/bazelbuild/rules_jvm_external/archive/refs/tags/5.2.tar.gz"],
466477
sha256 = "c9ae901381ae7f7eca08aed96caeb542f96c5449052db9c9d27274a8dc154cdf",

0 commit comments

Comments
 (0)