diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-03-03 13:14:46 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-03-06 02:36:37 +0100 |
commit | 90abad1baaef544312b27df73adb80c9fada26e3 (patch) | |
tree | 0333b97530043f2dd863198b8097fe2bd748771e | |
parent | baf1bb20d02f60d001a4d77d9749f845d4ada45e (diff) | |
download | jgit-90abad1baaef544312b27df73adb80c9fada26e3.tar.gz jgit-90abad1baaef544312b27df73adb80c9fada26e3.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>
(cherry picked from commit ec5fc57b791081fa073fc5fd91286347238f8f7c)
-rw-r--r-- | tools/bazlets.bzl | 4 |
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, |