File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ It's a not recommended for your CI pipeline. Only install like this for your loc
92
92
``` bash
93
93
go get -u github.com/golangci/golangci-lint
94
94
cd $GOPATH /src/github.com/golangci/golangci-lint/cmd/golangci-lint
95
- go install -ldflags " -X 'main.version=$( git rev-parse --abbrev-ref HEAD ) ' -X 'main.commit=$( git rev-parse --short HEAD) ' -X 'main.date=$( date) '"
95
+ go install -ldflags " -X 'main.version=$( git describe --tags ) ' -X 'main.commit=$( git rev-parse --short HEAD) ' -X 'main.date=$( date) '"
96
96
```
97
97
98
98
You can also install it on OSX using brew:
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ It's a not recommended for your CI pipeline. Only install like this for your loc
92
92
``` bash
93
93
go get -u github.com/golangci/golangci-lint
94
94
cd $GOPATH /src/github.com/golangci/golangci-lint/cmd/golangci-lint
95
- go install -ldflags " -X 'main.version=$( git rev-parse --abbrev-ref HEAD ) ' -X 'main.commit=$( git rev-parse --short HEAD) ' -X 'main.date=$( date) '"
95
+ go install -ldflags " -X 'main.version=$( git describe --tags ) ' -X 'main.commit=$( git rev-parse --short HEAD) ' -X 'main.date=$( date) '"
96
96
```
97
97
98
98
You can also install it on OSX using brew:
You can’t perform that action at this time.
0 commit comments