Skip to content

Commit 57b97a2

Browse files
authored
Change README.md instructions from go get to go install (#92)
Simply running the current command from the `README.md` on more recent go versions results in: ``` go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. ``` This commits modifies the `README.md` to suggest `go install` instead Signed-off-by: Omer Tuchfeld <[email protected]>
1 parent a188fbc commit 57b97a2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,18 @@ All import blocks use one TAB(`\t`) as Indent.
2727

2828
`nolint` is hard to handle at section level, GCI will consider it as a single comment.
2929

30-
## Download
30+
## Installation
31+
32+
To download and install the highest available release version -
33+
34+
```shell
35+
$ go install github.com/daixiang0/gci@latest
36+
```
37+
38+
You may also specify a specific version, for example:
3139

3240
```shell
33-
$ go get github.com/daixiang0/gci
41+
$ go install github.com/daixiang0/gci@v0.6.0
3442
```
3543

3644
## Usage

0 commit comments

Comments
 (0)