From a7246edf9d1c1fc536d405315c64c030bfaf93e4 Mon Sep 17 00:00:00 2001 From: Nasser Grainawi Date: Mon, 4 Dec 2023 14:12:06 -0700 Subject: [PATCH] bazel: Use canonical reproducible load_bazlets rule 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 --- WORKSPACE | 1 + bazlets.bzl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index ce95fe63..0cab5f62 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -6,6 +6,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( commit = "b6120a9fa50945d38f0a4d55d5879e3ec465c5e5", + shallow_since = "1701477032 -0700", #local_path = "/home//projects/bazlets", ) diff --git a/bazlets.bzl b/bazlets.bzl index f089af47..457bfec2 100644 --- a/bazlets.bzl +++ b/bazlets.bzl @@ -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(