Re: Formatter for BUILD files

192 views
Skip to first unread message

Dino Wernli

unread,
Jan 5, 2016, 7:04:24 PM1/5/16
to bazel-...@googlegroups.com, baze...@googlegroups.com
[+bazel-discuss, bazel-dev to bcc]

On Wed, Jan 6, 2016 at 12:02 AM, Dino Wernli <dinow...@gmail.com> wrote:
Hi bazel-dev

I was wondering, are there any plans to release a formatter for BUILD files? For instance, something which would sort/dedupe labels in lists and maybe fix indentation seems like it would be pretty useful.

In general, I could see varying degrees of sophistication of tools for BUILD file manipulation being useful (e.g., something that would automatically remove unused dependencies in rules).

I couldn't really find anything of the sort on the roadmap though, does anybody have more details?

Cheers
Dino

David Chen

unread,
Jan 5, 2016, 11:30:02 PM1/5/16
to Dino Wernli, bazel-...@googlegroups.com, bazel-dev

We have a formatter that we have been using internally that we are planning to open-source, but it was contingent on Go support. Now that we have released an initial version of the Go rules, is there an update on when we can open-source the formatting tool?

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAP7rZ4Qb9mu0qrFw7C8kTAZxNB8z1%3DZkGmiaJoTdysbqFaKTNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Damien Martin-guillerez

unread,
Jan 6, 2016, 2:12:33 PM1/6/16
to David Chen, Dino Wernli, bazel-...@googlegroups.com, bazel-dev

Everything is there we just need someone to take the task.


You received this message because you are subscribed to the Google Groups "bazel-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-dev+...@googlegroups.com.
To post to this group, send email to baze...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-dev/CAHb-%3DN%2BZSFJcUXdKdAd0h2Gy7b05Az1CcYB2JrBWoxyP3YnWNQ%40mail.gmail.com.

Dino Wernli

unread,
Jan 25, 2016, 5:14:34 AM1/25/16
to Damien Martin-guillerez, David Chen, bazel-...@googlegroups.com, bazel-dev
Friendliest of pings :) Is there any notion of where this might fit on a roadmap?

Kristina Chodorow

unread,
Jan 27, 2016, 4:22:21 PM1/27/16
to Dino Wernli, Damien Martin-guillerez, David Chen, bazel-...@googlegroups.com, bazel-dev
We're planning to make it a starter project for someone who will be joining the team in the next couple of months.

mcil...@google.com

unread,
Nov 17, 2016, 1:30:40 PM11/17/16
to bazel-discuss, dinow...@gmail.com, dmar...@google.com, d...@google.com, baze...@googlegroups.com
On Wednesday, January 27, 2016 at 4:22:21 PM UTC-5, Kristina Chodorow wrote:
> We're planning to make it a starter project for someone who will be joining the team in the next couple of months.

Is there an ETA on buildifier? It would help format our project https://nomulus.foo

David Chen

unread,
Nov 17, 2016, 1:33:06 PM11/17/16
to mcil...@google.com, bazel-discuss, dinow...@gmail.com, dmar...@google.com, baze...@googlegroups.com

Buildifier has already been open-sourced and is available here: https://github.com/bazelbuild/buildifier

Ben McIlwain

unread,
Nov 17, 2016, 1:36:51 PM11/17/16
to David Chen, bazel-discuss, dinow...@gmail.com, dmar...@google.com, baze...@googlegroups.com
I somehow managed to find this thread before that link.  Go figure.  Anyway, thanks!  If someone else manages to find this thread first too now they'll have the right link.
Reply all
Reply to author
Forward
0 new messages