10/17/2018

How to get buildifier: the BAZEL BUILD file formatter

  1. Install Go:
Install Go Development Kit on Mac:
Install Go in ubuntu:
Follow    https://golang.org/doc/install#install
mkdir ~/go
    echo export GOPATH=${HOME}/go >> ~/.bashrc
    source ~/.bashrc
2. Install Buildifier by:
go get github.com/bazelbuild/buildtools/buildifier
This will put the buildifier in ~/go/bin/buildifier in mac, go/bin in ubuntu

No comments: