Help is very welcome. Before making a Pull Request, ensure you have installed requirements and ran ./tools/hooks/autohook.sh install
after initial checkout!
Buildifier can be installed with bazel
or go
.
Install with go
- change directory to
$GOPATH
- run
$ go get github.com/bazelbuild/buildtools/buildifier
The executable file will be located under$GOPATH/bin
- create a soft link for global usage, run
$ sudo ln -s $HOME/go/bin/buildifier /usr/bin/buildifier
Install with bazel
- clone
bazelbuild/buildtools
repository$ git clone https://github.com/bazelbuild/buildtools.git
- change directory to
buildtools
- build it with bazel command,
$ bazel build //buildifier
The executable file will be located underpath/to/buildtools/bazel-bin
- create a soft link
clang-format can be installed by command:
- Debian/Ubuntu based:
$ sudo apt-get install clang-format
- OSX:
$ brew install clang-format