buildtools icon indicating copy to clipboard operation
buildtools copied to clipboard

A bazel BUILD file formatter and editor

Results 185 buildtools issues
Sort by recently updated
recently updated
newest added

Hi, I have a `.bzl` file that I need to keep compatible with both Starlark and Bash The original contents of the file: ``` # buildifier: leave-alone MY_VAR="value" ``` However...

I'm curious what the status and purpose of buildifier2 is. Is it an experiment? Is buildtools planning to move to the Go starlark ast exclusively?

unused_deps assumes that the cmd will be ran in a folder path contains WORKSPACE Thus we cannot run it via bazel run like below ```bash ➜ bazel run //tools/linter:unused_deps //......

It would be good if there was a .rc for buildifier to avoid having to pass the same flags through for every command. more context for the initial use case...

I am trying to refactor targets inside list comprehension using `buildozer`. Specifically, I would like to add a the tag `unstable` to tests. ```starlark cc_library( name = "containers", srcs =...

The ask here will make it easier to search for issues related to a given tool or area of this repository with confidence. An existing pattern from other Google projects...

From ubuntu with current apt go package (go1.10.4 linux/amd64), running: ``` go get -u github.com/bazelbuild/buildtools/buildifier ``` yields the following error: ``` /root/go/src/github.com/bazelbuild/buildtools/buildifier/utils/utils.go:163:14: undefined: strings.ReplaceAll ```

```bash $ bazel run //:buildifier ERROR: /private/var/tmp/_bazel_lol/b8c9941566ac81876f0d17a46a5ee553/external/io_bazel_rules_go/proto/BUILD.bazel:13:1: every rule of type go_proto_compiler implicitly depends upon the target '@com_google_protobuf//:protoc', but this target could not be found because of: no such package...

When following https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md#setup-and-usage-via-bazel on windows, the following output is observed: ``` $ bazel run //:buildifier INFO: Analysed target //:buildifier (1 packages loaded). INFO: Found 1 target... Target //:buildifier up-to-date: C:/users/kamik/_bazel_kamik/gq7cl633/execroot/angular_devkit/bazel-out/x64_windows-fastbuild/bin/buildifier.bash...

I understand that some files have out-of-order loads to begin with (or even loads scattered across the file). But when the existing loads are sorted, it could be nice to...