From 5bcc31df55ec1de770cb52887f2e989e7068301f Mon Sep 17 00:00:00 2001 From: Takeo Sawada Date: Mon, 9 Sep 2019 20:56:33 +0900 Subject: [PATCH] buildifier: Add additional patterns in runner.bash.template (#717) Add (BUILD|WORKSPACE).*.(oss|bazel) pattern, introduced in f8b2ce4c. Fixes #704 --- buildifier/runner.bash.template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/buildifier/runner.bash.template b/buildifier/runner.bash.template index 800975a27..4606df219 100644 --- a/buildifier/runner.bash.template +++ b/buildifier/runner.bash.template @@ -13,6 +13,12 @@ buildifier_short_path=$(readlink "$BUILDIFIER_SHORT_PATH") -o -name BUILD.bazel \ -o -name BUILD \ -o -name '*.BUILD' \ - -o -name WORKSPACE \) \ + -o -name 'BUILD.*.bazel' \ + -o -name 'BUILD.*.oss' \ + -o -name WORKSPACE \ + -o -name WORKSPACE.bazel \ + -o -name WORKSPACE.oss \ + -o -name 'WORKSPACE.*.bazel' \ + -o -name 'WORKSPACE.*.oss' \) \ -print \ | xargs "$buildifier_short_path" "${ARGS[@]}")