Skip to content

Commit 70193b9

Browse files
committed
docs: improve shell installation info
1 parent 3ce87e6 commit 70193b9

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,16 @@ is upgraded.
4242
It's highly recommended to install a fixed version of golangci-lint.
4343
Releases 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

5057
Periodically update version of golangci-lint: the project is under active development

README.md.tmpl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,16 @@ is upgraded.
4242
It's highly recommended to install a fixed version of golangci-lint.
4343
Releases 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

5057
Periodically update version of golangci-lint: the project is under active development

0 commit comments

Comments
 (0)