Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
2 | |||||
3 | NAME = "com_googlesource_gerrit_bazlets" | ||||
4 | |||||
5 | def load_bazlets( | ||||
6 | commit, | ||||
7 | local_path = None): | ||||
8 | if not local_path: | ||||
9 | git_repository( | ||||
10 | name = NAME, | ||||
11 | remote = "https://gerrit.googlesource.com/bazlets", | ||||
12 | commit = commit, | ||||
13 | ) | ||||
14 | else: | ||||
15 | native.local_repository( | ||||
16 | name = NAME, | ||||
17 | path = local_path, | ||||
18 | ) |