Releases: bazelbuild/buildtools
Releases · bazelbuild/buildtools
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": {
}
}
```