File tree 3 files changed +426
-6
lines changed 3 files changed +426
-6
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,28 @@ The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest
49
49
version from the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) ):
50
50
``` bash
51
51
# binary will be $GOPATH/bin/golangci-lint
52
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH /bin vX.Y.Z
52
+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH /bin vX.Y.Z
53
53
54
54
# or install it into ./bin/
55
- # curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s vX.Y.Z
55
+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s vX.Y.Z
56
56
57
- # golangci-lint --version
57
+ # In alpine linux (as it does not come with curl by default)
58
+ wget -O - -q https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s vX.Y.Z
59
+
60
+ golangci-lint --version
61
+ ```
62
+ As a fallback you can also use ` raw.githubusercontent.com `
63
+ ``` bash
64
+ # binary will be $GOPATH/bin/golangci-lint
65
+ curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GOPATH /bin vX.Y.Z
66
+
67
+ # or install it into ./bin/
68
+ curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s vX.Y.Z
69
+
70
+ # In alpine linux (as it does not come with curl by default)
71
+ wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s vX.Y.Z
72
+
73
+ golangci-lint --version
58
74
```
59
75
60
76
Periodically update version of golangci-lint: the project is under active development
Original file line number Diff line number Diff line change @@ -49,12 +49,28 @@ The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest
49
49
version from the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) ):
50
50
``` bash
51
51
# binary will be $GOPATH/bin/golangci-lint
52
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH /bin vX.Y.Z
52
+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH /bin vX.Y.Z
53
53
54
54
# or install it into ./bin/
55
- # curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s vX.Y.Z
55
+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s vX.Y.Z
56
56
57
- # golangci-lint --version
57
+ # In alpine linux (as it does not come with curl by default)
58
+ wget -O - -q https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s vX.Y.Z
59
+
60
+ golangci-lint --version
61
+ ```
62
+ As a fallback you can also use ` raw.githubusercontent.com `
63
+ ``` bash
64
+ # binary will be $GOPATH/bin/golangci-lint
65
+ curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GOPATH /bin vX.Y.Z
66
+
67
+ # or install it into ./bin/
68
+ curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s vX.Y.Z
69
+
70
+ # In alpine linux (as it does not come with curl by default)
71
+ wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s vX.Y.Z
72
+
73
+ golangci-lint --version
58
74
```
59
75
60
76
Periodically update version of golangci-lint: the project is under active development
You can’t perform that action at this time.
0 commit comments