File tree Expand file tree Collapse file tree 3 files changed +426
-6
lines changed Expand file tree Collapse file tree 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
4949version from the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) ):
5050``` bash
5151# 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
5353
5454# 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
5656
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
5874```
5975
6076Periodically 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
4949version from the [ releases page] ( https://github.com/golangci/golangci-lint/releases ) ):
5050``` bash
5151# 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
5353
5454# 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
5656
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
5874```
5975
6076Periodically update version of golangci-lint: the project is under active development
You can’t perform that action at this time.
0 commit comments