Update README.tmpl.md (#868)
Update README. * added -S flag to properly show errors for curl * replaced -q flag with -nv to properly show errors for wget * added github release badge from shields.io to display latest version next installation
This commit is contained in:
parent
e4df56bd80
commit
4461816f67
18
README.md
18
README.md
@ -68,29 +68,27 @@ Most installations are done for CI (travis, circleci etc). It's important to hav
|
|||||||
don't start to fail all builds at the same time. With golangci-lint this can happen if you
|
don't start to fail all builds at the same time. With golangci-lint this can happen if you
|
||||||
use deprecated option `--enable-all` and a new linter is added or even without `--enable-all`: when one upstream linter is upgraded.
|
use deprecated option `--enable-all` and a new linter is added or even without `--enable-all`: when one upstream linter is upgraded.
|
||||||
|
|
||||||
It's highly recommended to install a fixed version of golangci-lint.
|
It's highly recommended to install a specific version of golangci-lint. Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases).
|
||||||
Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases).
|
|
||||||
|
|
||||||
Latest version: [v1.21.0](https://github.com/golangci/golangci-lint/releases/tag/v1.21.0)
|
Latest release: []((https://github.com/golangci/golangci-lint/releases/latest))
|
||||||
|
|
||||||
Here is the recommended way to install golangci-lint:
|
Here is the recommended way to install golangci-lint v1.21.0:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# binary will be $(go env GOPATH)/bin/golangci-lint
|
# binary will be $(go env GOPATH)/bin/golangci-lint
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
|
||||||
|
|
||||||
# or install it into ./bin/
|
# or install it into ./bin/
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.21.0
|
||||||
|
|
||||||
# In alpine linux (as it does not come with curl by default)
|
# In alpine linux (as it does not come with curl by default)
|
||||||
wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0
|
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.21.0
|
||||||
|
|
||||||
golangci-lint --version
|
golangci-lint --version
|
||||||
```
|
```
|
||||||
|
|
||||||
Periodically update version of golangci-lint: the project is under active development
|
It is advised that you periodically update version of golangci-lint as the project is under active development
|
||||||
and is constantly being improved. But please always check for newly found issues and
|
and is constantly being improved. For any problems with golangci-lint, check out recent [GitHub issues](https://github.com/golangci/golangci-lint/issues) and update if needed.
|
||||||
update if needed.
|
|
||||||
|
|
||||||
### MacOS
|
### MacOS
|
||||||
|
|
||||||
|
@ -68,29 +68,27 @@ Most installations are done for CI (travis, circleci etc). It's important to hav
|
|||||||
don't start to fail all builds at the same time. With golangci-lint this can happen if you
|
don't start to fail all builds at the same time. With golangci-lint this can happen if you
|
||||||
use deprecated option `--enable-all` and a new linter is added or even without `--enable-all`: when one upstream linter is upgraded.
|
use deprecated option `--enable-all` and a new linter is added or even without `--enable-all`: when one upstream linter is upgraded.
|
||||||
|
|
||||||
It's highly recommended to install a fixed version of golangci-lint.
|
It's highly recommended to install a specific version of golangci-lint. Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases).
|
||||||
Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases).
|
|
||||||
|
|
||||||
Latest version: [{{.LatestVersion}}](https://github.com/golangci/golangci-lint/releases/tag/{{.LatestVersion}})
|
Latest release: []((https://github.com/golangci/golangci-lint/releases/latest))
|
||||||
|
|
||||||
Here is the recommended way to install golangci-lint:
|
Here is the recommended way to install golangci-lint {{.LatestVersion}}:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# binary will be $(go env GOPATH)/bin/golangci-lint
|
# binary will be $(go env GOPATH)/bin/golangci-lint
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin {{.LatestVersion}}
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin {{.LatestVersion}}
|
||||||
|
|
||||||
# or install it into ./bin/
|
# or install it into ./bin/
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s {{.LatestVersion}}
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s {{.LatestVersion}}
|
||||||
|
|
||||||
# In alpine linux (as it does not come with curl by default)
|
# In alpine linux (as it does not come with curl by default)
|
||||||
wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s {{.LatestVersion}}
|
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s {{.LatestVersion}}
|
||||||
|
|
||||||
golangci-lint --version
|
golangci-lint --version
|
||||||
```
|
```
|
||||||
|
|
||||||
Periodically update version of golangci-lint: the project is under active development
|
It is advised that you periodically update version of golangci-lint as the project is under active development
|
||||||
and is constantly being improved. But please always check for newly found issues and
|
and is constantly being improved. For any problems with golangci-lint, check out recent [GitHub issues](https://github.com/golangci/golangci-lint/issues) and update if needed.
|
||||||
update if needed.
|
|
||||||
|
|
||||||
### MacOS
|
### MacOS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user