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.
42
42
It's highly recommended to install a fixed version of golangci-lint.
43
43
Releases are available on the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) .
44
44
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 ) ):
46
47
``` 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
48
55
```
49
56
50
57
Periodically 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.
42
42
It's highly recommended to install a fixed version of golangci-lint.
43
43
Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases).
44
44
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)):
46
47
```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
48
55
```
49
56
50
57
Periodically update version of golangci-lint: the project is under active development
You can’t perform that action at this time.
0 commit comments