Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 5b9836a

Browse files
authored
Use new http_archive rule for Bazel deps (#286)
This replaces the older native rules, which will be disabled by default in an upcoming release.
1 parent 97539e4 commit 5b9836a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bazel/repositories.bzl

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
Maven dependencies must be added to the workspace with bazel-deps.
44
"""
55

6+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
7+
68
def rosjava_repositories():
7-
_maybe(native.http_archive,
9+
_maybe(http_archive,
810
name = "com_googlesource_gerrit_bazlets",
911
sha256 = "cdd1a90733cdb71ac4fb86aa6027d3fcad275fe74781175f8437a9c86a0db149",
1012
strip_prefix = "bazlets-4459b9706a6eedb8453a98d4434fb3bc4db84211",
@@ -13,7 +15,7 @@ def rosjava_repositories():
1315
],
1416
)
1517

16-
_maybe(native.http_archive,
18+
_maybe(http_archive,
1719
name = "com_github_rosjava_rosjava_bootstrap",
1820
sha256 = "3c59776a8c6e22232d07f29a686c0e5f401812ec27f59405711657d54a792c08",
1921
strip_prefix = "rosjava_bootstrap-62f865dbe8a7830b21e054dc2a5ac7d2edc6eafe",

0 commit comments

Comments
 (0)