Skip to content

Commit 59c3d20

Browse files
kishaningithubjirfag
authored andcommitted
Add install.sh to the repo and update readme. Fixes #233
1 parent 37a3179 commit 59c3d20

File tree

3 files changed

+426
-6
lines changed

3 files changed

+426
-6
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,28 @@ The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest
4949
version 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

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

README.tmpl.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,28 @@ The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest
4949
version 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

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

0 commit comments

Comments
 (0)