File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ Local installation is not recommended for your CI pipeline. Only install the lin
9696go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
9797```
9898
99+ With ` go1.11 ` or later you can get a particular version
100+ ``` bash
101+ GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.14.1
102+ ```
103+
99104#### MacOS
100105
101106You can also install it on MacOS using [ brew] ( https://brew.sh/ ) :
Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ Local installation is not recommended for your CI pipeline. Only install the lin
9696go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
9797```
9898
99+ With ` go1.11 ` or later you can get a particular version
100+ ``` bash
101+ GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.14.1
102+ ```
103+
99104#### MacOS
100105
101106You can also install it on MacOS using [ brew] ( https://brew.sh/ ) :
Original file line number Diff line number Diff line change 1+ // +build go1.12
2+
3+ package main
4+
5+ import (
6+ "fmt"
7+ "runtime/debug"
8+ )
9+
10+ func init () {
11+ if info , available := debug .ReadBuildInfo (); available {
12+ if date == "" && info .Main .Version != "(devel)" {
13+ version = info .Main .Version
14+ commit = fmt .Sprintf ("(unknown, mod sum: %q)" , info .Main .Sum )
15+ date = "(unknown)"
16+ }
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments