diff options
Diffstat (limited to 'tools/bazlets.bzl')
-rw-r--r-- | tools/bazlets.bzl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/bazlets.bzl b/tools/bazlets.bzl new file mode 100644 index 0000000000..e14e488492 --- /dev/null +++ b/tools/bazlets.bzl @@ -0,0 +1,17 @@ +NAME = "com_googlesource_gerrit_bazlets" + +def load_bazlets( + commit, + local_path = None + ): + if not local_path: + native.git_repository( + name = NAME, + remote = "https://gerrit.googlesource.com/bazlets", + commit = commit, + ) + else: + native.local_repository( + name = NAME, + path = local_path, + ) |