diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 915685abba..1ab3f7b319 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -356,7 +356,7 @@ def _CheckBuildifier(input_api, output_api): for affected_file in input_api.AffectedFiles(include_deletes=False): affected_file_path = affected_file.LocalPath() if affected_file_path.endswith('BUILD.bazel') or affected_file_path.endswith('.bzl'): - if not affected_file_path.endswith('public.bzl'): + if not affected_file_path.endswith('public.bzl') and not affected_file_path.endswith('go_repositories.bzl'): files.append(affected_file_path) if not files: return []