Skip to content

Commit 42bb670

Browse files
committed
Fix rules_cc workspace integration for rules_cc 0.2.0 or newer
1 parent a8577cc commit 42bb670

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module(
66
compatibility_level = 1,
77
)
88

9+
bazel_dep(name = "bazel_features", version = "1.32.0")
910
bazel_dep(name = "bazel_skylib", version = "1.7.1")
1011
bazel_dep(name = "package_metadata", version = "0.0.2")
1112
bazel_dep(name = "platforms", version = "0.0.10")

e2e/smoke/WORKSPACE.bazel

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ local_repository(
66

77
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
88

9+
http_archive(
10+
name = "bazel_features",
11+
sha256 = "07bd2b18764cdee1e0d6ff42c9c0a6111ffcbd0c17f0de38e7f44f1519d1c0cd",
12+
strip_prefix = "bazel_features-1.32.0",
13+
url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.32.0/bazel_features-v1.32.0.tar.gz",
14+
)
15+
16+
load("@bazel_features//:deps.bzl", "bazel_features_deps")
17+
18+
bazel_features_deps()
19+
920
http_archive(
1021
name = "com_google_protobuf",
1122
sha256 = "10a0d58f39a1a909e95e00e8ba0b5b1dc64d02997f741151953a2b3659f6e78c",
@@ -19,9 +30,9 @@ proto_bazel_features(name = "proto_bazel_features")
1930

2031
http_archive(
2132
name = "rules_cc",
22-
sha256 = "abc605dd850f813bb37004b77db20106a19311a96b2da1c92b789da529d28fe1",
23-
strip_prefix = "rules_cc-0.0.17",
24-
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.17/rules_cc-0.0.17.tar.gz"],
33+
sha256 = "ae244f400218f4a12ee81658ff246c0be5cb02c5ca2de5519ed505a6795431e9",
34+
strip_prefix = "rules_cc-0.2.0",
35+
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.0/rules_cc-0.2.0.tar.gz",
2536
)
2637

2738
load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")
@@ -30,6 +41,10 @@ rules_cc_dependencies()
3041

3142
rules_cc_toolchains()
3243

44+
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
45+
46+
compatibility_proxy_repo()
47+
3348
#---SNIP--- Below here is re-used in the workspace snippet published on releases
3449

3550
######################

0 commit comments

Comments
 (0)