Skip to content

Commit 577b0fd

Browse files
committed
docs: restore install binaries section
1 parent 3eae3e9 commit 577b0fd

File tree

1 file changed

+17
-0
lines changed
  • docs/content/docs/welcome/install

1 file changed

+17
-0
lines changed

docs/content/docs/welcome/install/local.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ title: "Local Installation"
33
weight: 2
44
---
55

6+
### Binaries
7+
8+
```bash
9+
# binary will be $(go env GOPATH)/bin/golangci-lint
10+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin {{< golangci/latest-version >}}
11+
12+
# or install it into ./bin/
13+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s {{< golangci/latest-version >}}
14+
15+
# In Alpine Linux (as it does not come with curl by default)
16+
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s {{< golangci/latest-version >}}
17+
18+
golangci-lint --version
19+
```
20+
21+
On Windows, you can run the above commands with Git Bash, which comes with [Git for Windows](https://git-scm.com/download/win).
22+
623
## Linux
724

825
Golangci-lint is available inside the majority of the package managers.

0 commit comments

Comments
 (0)