[bazel] Make PRESUBMIT ignore deleted BUILD.bazel files
Change-Id: Ia1d43e4814eb23fc111df0c1800425272337936c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/536639 Reviewed-by: Ravi Mistry <rmistry@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
parent
722d1c0679
commit
269e687f4f
@ -259,7 +259,7 @@ def _RegenerateAllExamplesCPP(input_api, output_api):
|
||||
def _CheckBazelBUILDFiles(input_api, output_api):
|
||||
"""Makes sure our BUILD.bazel files are compatible with G3."""
|
||||
results = []
|
||||
for affected_file in input_api.AffectedFiles():
|
||||
for affected_file in input_api.AffectedFiles(include_deletes=False):
|
||||
affected_file_path = affected_file.LocalPath()
|
||||
is_bazel = affected_file_path.endswith('BUILD.bazel')
|
||||
if is_bazel:
|
||||
|
Loading…
Reference in New Issue
Block a user