Procházet zdrojové kódy

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 před 5 roky
rodič
revize
ec5fc57b79
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3
    1
      tools/bazlets.bzl

+ 3
- 1
tools/bazlets.bzl Zobrazit soubor

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

Načítá se…
Zrušit
Uložit