Skip to content

Commit

Permalink
bazel: Use canonical reproducible load_bazlets rule
Browse files Browse the repository at this point in the history
This silences the debug message:
  Rule 'com_googlesource_gerrit_bazlets' indicated that a canonical
  reproducible form can be obtained by modifying arguments shallow_since

Change-Id: I5b0e335fb2eaa1216b35aec81946a2272f703b10
  • Loading branch information
Nasser Grainawi committed Dec 4, 2023
1 parent eae9297 commit a7246ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load("//:bazlets.bzl", "load_bazlets")

load_bazlets(
commit = "b6120a9fa50945d38f0a4d55d5879e3ec465c5e5",
shallow_since = "1701477032 -0700",
#local_path = "/home/<user>/projects/bazlets",
)

Expand Down
2 changes: 2 additions & 0 deletions bazlets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ NAME = "com_googlesource_gerrit_bazlets"

def load_bazlets(
commit,
shallow_since = None,
local_path = None):
if not local_path:
git_repository(
name = NAME,
remote = "https://gerrit.googlesource.com/bazlets",
commit = commit,
shallow_since = shallow_since,
)
else:
native.local_repository(
Expand Down

0 comments on commit a7246ed

Please sign in to comment.