Skip to content

Releases: bazelbuild/buildtools

Release 0.17.2 (2018-10-08)

08 Oct 14:45
Compare
Choose a tag to compare

Highlights:

  • Report parse errors as a type
  • Support new_load /foo to=from

Built with bazel@ e02da399faf5e7e412f4a01566f0da6e0b787cc3

Release 0.15.0 (2018-07-31)

31 Jul 17:44
4a7914a
Compare
Choose a tag to compare

buildifier: updated support for skylark formatting
unused_deps: working again

Release 0.12.0 (2018-06-11)

11 Jun 18:36
Compare
Choose a tag to compare

Synced to bazel/rules_go release 0.12.0

buildifier Includes alpha support for skylark (.bzl) formatting

Release 0.11.1 (2018-03-12)

12 Mar 15:45
405641a
Compare
Choose a tag to compare

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)

02 Oct 15:06
Compare
Choose a tag to compare

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

12 Apr 15:46
Compare
Choose a tag to compare

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)

30 Jan 20:30
Compare
Choose a tag to compare
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": {
  }
}
```