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

Redsun82/buildifier test #16316

Closed
wants to merge 5 commits into from
Closed

Redsun82/buildifier test #16316

wants to merge 5 commits into from

Conversation

redsun82
Copy link
Contributor

No description provided.

This introduces tooling and enforcement for formatting bazel files.

The tooling is provided as a bazel run target from
[keith/buildifier-prebuilt](https://github.com/keith/buildifier-prebuilt).

This is used in a [`pre-commit`](https://pre-commit.com/) hook for those
having that installed. In turn this is used in a CI check. Relying on a
`pre-commit` action gives us easy checking that buildifying did not
change anything in the files and printing the diff, without having to
hand-roll the check ourselves.

This enforcement will make usage of gazelle easier, as gazelle itself
might reformat files, even outside of `go`. Having them properly
formatted will allow gazelle to leave them unchanged, without needing
to configure awkward exclude directives.
@redsun82 redsun82 marked this pull request as ready for review April 24, 2024 14:03
@redsun82 redsun82 requested review from a team as code owners April 24, 2024 14:03
@redsun82 redsun82 removed request for a team April 24, 2024 14:03
@redsun82 redsun82 closed this Apr 24, 2024
@redsun82 redsun82 reopened this Apr 24, 2024
@redsun82 redsun82 marked this pull request as draft April 24, 2024 14:17
@redsun82 redsun82 closed this Apr 24, 2024
@redsun82 redsun82 deleted the redsun82/buildifier-test branch April 24, 2024 14:18
@redsun82 redsun82 restored the redsun82/buildifier-test branch April 24, 2024 14:22
@redsun82 redsun82 reopened this Apr 24, 2024
@redsun82 redsun82 force-pushed the redsun82/buildifier-test branch 2 times, most recently from 2616bbb to 4d819f3 Compare April 24, 2024 14:34
@redsun82 redsun82 force-pushed the redsun82/buildifier-test branch from 4d819f3 to a07f47b Compare April 24, 2024 14:36
@redsun82 redsun82 force-pushed the redsun82/buildifier-test branch from a07f47b to 0498ed5 Compare April 24, 2024 14:44
@redsun82 redsun82 closed this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant