summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2019-03-03 13:14:46 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2019-03-03 13:15:19 +0900
commitec5fc57b791081fa073fc5fd91286347238f8f7c (patch)
tree251fc9e251e9d9d10cb3aecb1e83863decd4d5ae /tools
parent962babc4b27ffd90058fe7734f17ed1c4e77d958 (diff)
downloadjgit-ec5fc57b791081fa073fc5fd91286347238f8f7c.tar.gz
jgit-ec5fc57b791081fa073fc5fd91286347238f8f7c.zip
Bazel: Stop using native.git_repository
The native.git_repository method doesn't work in the latest version of bazel, and causes the build to fail with: type 'struct' has no method git_repository() Change-Id: Id6a57369b681c0afe811e9e3740b141fb7fb4653 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/bazlets.bzl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bazlets.bzl b/tools/bazlets.bzl
index f97b72c828..f089af473a 100644
--- a/tools/bazlets.bzl
+++ b/tools/bazlets.bzl
@@ -1,10 +1,12 @@
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
+
NAME = "com_googlesource_gerrit_bazlets"
def load_bazlets(
commit,
local_path = None):
if not local_path:
- native.git_repository(
+ git_repository(
name = NAME,
remote = "https://gerrit.googlesource.com/bazlets",
commit = commit,