2018-11-01 09:37:29 +02:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|
|
|
|
2016-11-06 10:06:54 +02:00
|
|
|
NAME = "com_googlesource_gerrit_bazlets"
|
|
|
|
|
|
|
|
def load_bazlets(
|
2018-08-30 09:27:20 +03:00
|
|
|
commit,
|
|
|
|
local_path = None):
|
|
|
|
if not local_path:
|
2018-11-01 09:37:29 +02:00
|
|
|
git_repository(
|
2018-08-30 09:27:20 +03:00
|
|
|
name = NAME,
|
|
|
|
remote = "https://gerrit.googlesource.com/bazlets",
|
|
|
|
commit = commit,
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
native.local_repository(
|
|
|
|
name = NAME,
|
|
|
|
path = local_path,
|
|
|
|
)
|