update building from source in readme to include buildFlags.

This commit is contained in:
bartfokker 2018-10-26 16:35:34 +02:00 committed by Isaev Denis
parent 4570c043a9
commit 58c7cce444

View File

@ -80,7 +80,9 @@ update if needed.
## Local Installation
It's a not recommended for your CI pipeline. Only install like this for your local development environment.
```bash
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
go get -u github.com/golangci/golangci-lint
cd $GOPATH/src/github.com/golangci/golangci-lint/cmd/golangci-lint
go install -ldflags "-X 'main.version=$(git rev-parse --abbrev-ref HEAD)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'"
```
You can also install it on OSX using brew: