1load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") 2 3NAME = "com_googlesource_gerrit_bazlets" 4 5def 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 ) 19