buildtools
buildtools copied to clipboard
A bazel BUILD file formatter and editor
Simplified example: ```console buildozer -buildifier buildifier 'set kind my_java_library' '//somepkg/...:%java_library' ``` Where `buildozer` and `buildifier` are normal 0.29.0 binaries installed from Homebrew It partially succeeds but fails on many files...
Incompatible flag --incompatible_no_implicit_file_export will be enabled by default in a future Bazel release [1], thus breaking Buildtools. The flag is documented here: https://github.com/bazelbuild/bazel/issues/10225 Please check the following CI builds for...
I have code that programatically runs buildozer commands and I've noticed that everytime I want to run an add command (e.g. `buildozer 'add deps //base' //pkg:rule`), I need to check...
Reposting the issue from https://github.com/bazelbuild/bazel/issues/10318 ================== Currently the unused_deps tool at https://github.com/bazelbuild/buildtools seems to not work with aliases, such as in this situation: `java_library( name = "c", srcs = ["C.java"],...
To add or modify an "exports_files" declaration one may use the following command: buildozer 'export_file filename.txt //visible/for:__pkg__' //path/to/target It's also possible to provide no or several visibility arguments, if a...
Would be really nice to be able to install releases instead of having to build.
Dormant files in a Perforce VCS workspace are read-only by default. Users must issue a `p4 edit ` before editing a file. Consequently, one cannot readily use buildozer or buildifier...
I took a stab at better documenting some things in syntax.go, which I've struggled to parse from godoc alone. I probably got some things slightly (or very) wrong - let...
Running buildifier in fix mode is adding `to_list()` method, that breaks the code: ```diff diff --git a/closure/compiler/closure_js_library.bzl b/closure/compiler/closure_js_library.bzl index e3cc389..9139942 100644 --- a/closure/compiler/closure_js_library.bzl +++ b/closure/compiler/closure_js_library.bzl @@ -307,7 +307,7 @@ def...
FAILED: Build did NOT complete successfully (33 packages loaded, 4292 targets configured) Fetching @local_config_cc; fetching Fetching @org_golang_x_tools; Cloning 589c23e65e65055d47b9ad4a99723bc389136265 of https://go.googlesource.com/tools Internal error thrown during build. Printing stack trace: java.util.MissingFormatArgumentException:...