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
9292``` bash
9393go get -u github.com/golangci/golangci-lint
9494cd $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) '"
9696```
9797
9898You 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
9292``` bash
9393go get -u github.com/golangci/golangci-lint
9494cd $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) '"
9696```
9797
9898You can also install it on OSX using brew:
You can’t perform that action at this time.
0 commit comments