Skip to content

Commit

Permalink
Revert "bazel: Use canonical reproducible load_bazlets rule"
Browse files Browse the repository at this point in the history
This reverts commit a7246ed.

Since bazel v6.1.0 the warning about shallow_since has been removed
since it was determined [1] to be potentially harmful to build
performance and reliability.

[1] bazelbuild/bazel#12857

Change-Id: I6003ae03511bdc7b5ba2cbb6b15b928bba18bfb5
  • Loading branch information
Nasser Grainawi committed Feb 7, 2024
1 parent c5bc4e7 commit e50675e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ load("//:bazlets.bzl", "load_bazlets")

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

Expand Down
2 changes: 0 additions & 2 deletions bazlets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ 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 e50675e

Please sign in to comment.