Releases: bazelbuild/buildtools
Releases · bazelbuild/buildtools
Release 0.20.0 (2018-12-11)
Update to bazel 0.20.0 and other latest versions
- Fix load order comparison warning
- [lint] other fixes and improvements
- Fix skylib deprecation warnings
Release 0.19.2.1 (2018-11-26)
Release 0.19.2 (2018-11-20)
Highlights:
- [buildifier] lint warn and fix modes added
- [buildozer] add dictionary handling
- [unused_deps] fix params file handling (works again)
- [buildozer,unused_deps] add -version flag to match buildifier behavior
- [all] update to latest versions of bazel, rules_go, gazelle, skylib
Release 0.17.2 (2018-10-08)
Highlights:
- Report parse errors as a type
- Support new_load /foo to=from
Built with bazel@ e02da399faf5e7e412f4a01566f0da6e0b787cc3
Release 0.15.0 (2018-07-31)
buildifier: updated support for skylark formatting
unused_deps: working again
Release 0.12.0 (2018-06-11)
Synced to bazel/rules_go release 0.12.0
buildifier Includes alpha support for skylark (.bzl) formatting
Release 0.11.1 (2018-03-12)
Synced to bazel release 0.11.1
- buildifier: experimental support for full skylark formatting -format_bzl
- buildifier: print_if_changed mode
- buildifier: support for pants
- buildifier: buildable on Windows
- buildozer: support implicit names when only 1 rule in a package
- buildozer: new substitute command
- buildozer: support -tables to load tables.json from file
- all: 'load' is a keyword
Release 0.6.0 (2017-10-01)
Synced to bazel release 0.6.0
- Update dependencies for compatibility with updated += on lists
- Command 'replace' works on expressions containing lists
- Enhancements to ParseLabel
- buildozer: make ellipsis work with BUILD.bazel and BUCK files
- -add_tables option to buildifier
- Handle glob arguments in buildozer
Synced with bazel 0.4.5; unused_deps; BUILD.bazel, BUCK
Highlights:
- update to latest version of rules_go; bazel 0.4.5
- repo renamed to buildtools
- Import from Google: unused_deps script for trimming deps from java_library
- Added README for buildozer
- Handle "-" as stdin/stdout mode
- Add BUILD.bazel & BUCK as valid BUILD file names
- Make buildifier and buildozer compile on Windows
0.4.3: Introduce a -tables option. (#45)
The `-tables` option makes it possible to specify a JSON file whose properties define arguments that will be passed to the `tables.OverrideTables()` function such that other projects can define their own constraints on argument formatting. This is valuable to Buck or Skylark users that define rules that need to be formatted in a way that is different from buildifier's defaults. Test Plan: * Added a test: `tables/jsonParser_test.go`. * Verified that `bazel test //...` succeeds. * Created a JSON config for Buck and verified the output of the following was what I expected when run from the Buck repo: ``` export BUILDIFIER_DIFF="diff -u" find . -name BUCK | xargs -I {} ../buildifier/bazel-bin/buildifier/buildifier -buildifier_disable=label -tables=buildifier.json -d {} ``` For this test, the contents of `buildifier.json` were: ``` { "IsLabelArg": { }, "LabelBlacklist": { }, "IsSortableListArg": { "deps": true, "exported_deps": true, "provided_deps": true, "srcs": true, "visibility": true }, "SortableBlacklist": { "genrule.srcs": true }, "SortableWhitelist": { } } ```