change to use archive instead of repo in WORKSPACE
1 file changed
tree: 703a5717706555863aa01f7a550876ef30538415
  1. api_proto/
  2. build_proto/
  3. buildifier/
  4. buildozer/
  5. core/
  6. differ/
  7. edit/
  8. file/
  9. generateTables/
  10. lang/
  11. wspace/
  12. .gitignore
  13. BUILD
  14. CONTRIBUTING.md
  15. CONTRIBUTORS
  16. LICENSE
  17. README.md
  18. WORKSPACE
README.md

Buildifier

buildifier is a tool for formatting bazel BUILD files with a standard convention.

Setup

Build the tool:

  • Checkout the repo and then either via go install or bazel build //buildifier
  • If you already have ‘go’ installed, then build a binary via:

go install github.com/bazelbuild/buildifier/buildifier

Usage

Use buildifier to create standardized formatting for BUILD files in the same way that clang-format is used for source files.

$ buildifier -showlog -mode=check $(find . -iname BUILD -type f)