Skip to content

Commit d40969f

Browse files
matthewtlamcopybara-github
authored andcommitted
[P4 Infra] Update to bazel v7.4.1
PiperOrigin-RevId: 807819883
1 parent 220643a commit d40969f

File tree

2 files changed

+40
-36
lines changed

2 files changed

+40
-36
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.4.0
1+
7.4.1

p4_infra_deps.bzl

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,17 @@ def p4_infra_deps():
3434
if not native.existing_rule("com_github_grpc_grpc"):
3535
http_archive(
3636
name = "com_github_grpc_grpc",
37-
url = "https://github.com/grpc/grpc/archive/v1.63.0.zip",
38-
strip_prefix = "grpc-1.63.0",
39-
sha256 = "daa1b06a19b5f7e4603e1f8980eeab43cf69b6e89bee3b2547f275fa5af7f480",
40-
patch_args = ["-p1"],
41-
# TODO(b/411119415): This patch will be removed once we switch over to bzlmod and
42-
# upgrade the grpc version.
43-
patches = [
44-
"@com_google_gutil//:bazel/patches/grpc-003-fix_go_gazelle_register_toolchain.patch",
45-
],
37+
url = "https://github.com/grpc/grpc/archive/refs/tags/v1.66.2.zip",
38+
strip_prefix = "grpc-1.66.2",
39+
sha256 = "f59cdac6bc92d9b34dcf2209f3845197bc9688442ac86c0d735eb6053049725c",
4640
)
4741
if not native.existing_rule("com_google_absl"):
4842
http_archive(
4943
name = "com_google_absl",
50-
url = "https://github.com/abseil/abseil-cpp/archive/20240116.2.tar.gz",
51-
strip_prefix = "abseil-cpp-20240116.2",
52-
sha256 = "733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc",
44+
# Newest commit on main as of 2025-08-14.
45+
url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20250814.0.zip",
46+
strip_prefix = "abseil-cpp-20250814.0",
47+
sha256 = "b2bdcf6682d8cb53df365bcc5d6c318a22e55821d9978a10fdb61404c026daff",
5348
)
5449
if not native.existing_rule("com_google_googletest"):
5550
http_archive(
@@ -160,13 +155,14 @@ def p4_infra_deps():
160155
sha256 = "fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2",
161156
build_file = "@//:bazel/BUILD.gmp.bazel",
162157
)
163-
if not native.existing_rule("rules_foreign_cc"):
164-
http_archive(
165-
name = "rules_foreign_cc",
166-
sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6",
167-
strip_prefix = "rules_foreign_cc-0.2.0",
168-
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz",
169-
)
158+
159+
# if not native.existing_rule("rules_foreign_cc"):
160+
# http_archive(
161+
# name = "rules_foreign_cc",
162+
# sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6",
163+
# strip_prefix = "rules_foreign_cc-0.2.0",
164+
# url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz",
165+
# )
170166
if not native.existing_rule("rules_proto"):
171167
http_archive(
172168
name = "rules_proto",
@@ -176,21 +172,29 @@ def p4_infra_deps():
176172
strip_prefix = "rules_proto-5.3.0-21.7",
177173
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
178174
)
179-
if not native.existing_rule("rules_pkg"):
175+
if not native.existing_rule("rules_cc"):
180176
http_archive(
181-
name = "rules_pkg",
182-
urls = [
183-
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
184-
"https://github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
185-
],
186-
sha256 = "a89e203d3cf264e564fcb96b6e06dd70bc0557356eb48400ce4b5d97c2c3720d",
187-
)
188-
if not native.existing_rule("com_google_ydf"):
189-
http_archive(
190-
name = "com_google_ydf",
191-
urls = [
192-
"https://github.com/google/yggdrasil-decision-forests/archive/50e3ef7d8e106f0021cab5fb94b230214f17ff94.zip",
193-
],
194-
strip_prefix = "yggdrasil-decision-forests-50e3ef7d8e106f0021cab5fb94b230214f17ff94",
195-
sha256 = "c5c0cd9924064a1c70356c2074e30e9fb7daaec6267d33fc58a1d0f4a99bc501",
177+
name = "rules_cc",
178+
sha256 = "b8b918a85f9144c01f6cfe0f45e4f2838c7413961a8ff23bc0c6cdf8bb07a3b6",
179+
strip_prefix = "rules_cc-0.1.5",
180+
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.1.5/rules_cc-0.1.5.tar.gz",
196181
)
182+
183+
# if not native.existing_rule("rules_pkg"):
184+
# http_archive(
185+
# name = "rules_pkg",
186+
# urls = [
187+
# "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
188+
# "https://github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
189+
# ],
190+
# sha256 = "a89e203d3cf264e564fcb96b6e06dd70bc0557356eb48400ce4b5d97c2c3720d",
191+
# )
192+
# if not native.existing_rule("com_google_ydf"):
193+
# http_archive(
194+
# name = "com_google_ydf",
195+
# urls = [
196+
# "https://github.com/google/yggdrasil-decision-forests/archive/50e3ef7d8e106f0021cab5fb94b230214f17ff94.zip",
197+
# ],
198+
# strip_prefix = "yggdrasil-decision-forests-50e3ef7d8e106f0021cab5fb94b230214f17ff94",
199+
# sha256 = "c5c0cd9924064a1c70356c2074e30e9fb7daaec6267d33fc58a1d0f4a99bc501",
200+
# )

0 commit comments

Comments
 (0)