Skip to content

Commit 65981c2

Browse files
committed
doc: provide instructions for from-source installation
1 parent 6771bea commit 65981c2

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,11 @@ docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.24.0 golangci-l
108108

109109
### Go
110110

111-
Please, do not install `golangci-lint` by `go get`:
111+
Go source installations are supported for the two most recent Go releases.
112112

113-
1. [`go.mod`](https://github.com/golangci/golangci-lint/blob/master/go.mod) replacement directive doesn't apply. It means you will be using patched version of `golangci-lint`.
114-
2. it's much slower than binary installation
115-
3. its stability depends on your Go version (e.g. on [this compiler Go <= 1.12 bug](https://github.com/golang/go/issues/29612)).
116-
4. it's not guaranteed to work: e.g. we've encountered a lot of issues with Go modules hashes.
117-
5. it allows installation from `master` branch which can't be considered stable.
113+
```bash
114+
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint
115+
```
118116

119117
## Trusted By
120118

README.tmpl.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,11 @@ docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:{{.LatestVersion}}
108108

109109
### Go
110110

111-
Please, do not install `golangci-lint` by `go get`:
111+
Go source installations are supported for the two most recent Go releases.
112112

113-
1. [`go.mod`](https://github.com/golangci/golangci-lint/blob/master/go.mod) replacement directive doesn't apply. It means you will be using patched version of `golangci-lint`.
114-
2. it's much slower than binary installation
115-
3. its stability depends on your Go version (e.g. on [this compiler Go <= 1.12 bug](https://github.com/golang/go/issues/29612)).
116-
4. it's not guaranteed to work: e.g. we've encountered a lot of issues with Go modules hashes.
117-
5. it allows installation from `master` branch which can't be considered stable.
113+
```bash
114+
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint
115+
```
118116

119117
## Trusted By
120118

0 commit comments

Comments
 (0)