update building from source in readme to include buildFlags.
This commit is contained in:
parent
4570c043a9
commit
58c7cce444
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user