Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bazel to match only extension or whole name #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update bazel to match only extension or whole name #3

wants to merge 1 commit into from

Conversation

TheButlah
Copy link

@TheButlah TheButlah commented Apr 11, 2020

The hook was originally matching all files in the repository as long as they had BUILD or BUILD.bazel in them. This commit ensures that, for example, BUILD.bazel and whatever/BUILD.bazel match, but not whateverBUILD.bazelasdf. It also adds support for whatever.BUILD files.

See #2

The hook was originally matching all files in the repository as long as they had `BUILD` or `BUILD.bazel` in them. This meant that they actually overrode the `files` setting in the user's repository. This commit ensures that, for example, `BUILD.bazel` and `whatever/BUILD.bazel` match, but not `whateverBUILD.bazelasdf`. It also adds support for `whatever.BUILD` files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant