From 70193b9b4da19cd08b96a7d8c5a62dd0f00fbea3 Mon Sep 17 00:00:00 2001 From: Denis Isaev <denis@golangci.com> Date: Sat, 30 Jun 2018 09:24:50 +0300 Subject: [PATCH] docs: improve shell installation info --- README.md | 11 +++++++++-- README.md.tmpl | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4eff6742..6fc64739 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,16 @@ is upgraded. It's highly recommended to install a fixed version of golangci-lint. Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases). -The recommended way to install golangci-lint: +The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest +version from the [releases page](https://github.com/golangci/golangci-lint/releases)): ```bash -curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s VERSION +# binary will be $GOPATH/bin/golangci-lint +curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin vX.Y.Z + +# or install it into ./bin/ +# curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s vX.Y.Z + +# golangci-lint --version ``` Periodically update version of golangci-lint: the project is under active development diff --git a/README.md.tmpl b/README.md.tmpl index 1c419fde..4f3cf256 100644 --- a/README.md.tmpl +++ b/README.md.tmpl @@ -42,9 +42,16 @@ is upgraded. It's highly recommended to install a fixed version of golangci-lint. Releases are available on the [releases page](https://github.com/golangci/golangci-lint/releases). -The recommended way to install golangci-lint: +The recommended way to install golangci-lint (replace `vX.Y.Z` with the latest +version from the [releases page](https://github.com/golangci/golangci-lint/releases)): ```bash -curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s VERSION +# binary will be $GOPATH/bin/golangci-lint +curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin vX.Y.Z + +# or install it into ./bin/ +# curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s vX.Y.Z + +# golangci-lint --version ``` Periodically update version of golangci-lint: the project is under active development