Skip to content

Commit

Permalink
update building from source in readme to include buildFlags.
Browse files Browse the repository at this point in the history
  • Loading branch information
barthr authored and jirfag committed Oct 28, 2018
1 parent 4570c04 commit 58c7cce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.tmpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 58c7cce

Please sign in to comment.