Browse Source

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>
tags/v5.3.0.201903061415-rc1
David Pursehouse 5 years ago
parent
commit
ec5fc57b79
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tools/bazlets.bzl

+ 3
- 1
tools/bazlets.bzl View File

@@ -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,

Loading…
Cancel
Save