File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,16 @@ is upgraded.
4242It's highly recommended to install a fixed version of golangci-lint.
4343Releases are available on the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) .
4444
45- The recommended way to install golangci-lint:
45+ The recommended way to install golangci-lint (replace ` vX.Y.Z ` with the latest
46+ version from the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) ):
4647``` bash
47- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s VERSION
48+ # binary will be $GOPATH/bin/golangci-lint
49+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH /bin vX.Y.Z
50+
51+ # or install it into ./bin/
52+ # curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s vX.Y.Z
53+
54+ # golangci-lint --version
4855```
4956
5057Periodically update version of golangci-lint: the project is under active development
Original file line number Diff line number Diff line change @@ -42,9 +42,16 @@ is upgraded.
4242It's highly recommended to install a fixed version of golangci-lint.
4343Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases).
4444
45- The recommended way to install golangci-lint:
45+ The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest
46+ version from the [releases page](https://github.com/golangci/golangci-lint/releases)):
4647```bash
47- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s VERSION
48+ # binary will be $GOPATH/bin/golangci-lint
49+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin vX.Y.Z
50+
51+ # or install it into ./bin/
52+ # curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s vX.Y.Z
53+
54+ # golangci-lint --version
4855```
4956
5057Periodically update version of golangci-lint: the project is under active development
You can’t perform that action at this time.
0 commit comments