Skip to content

Commit e8f0f77

Browse files
authored
README: suggest go install instead of go get (#674)
* README: suggest `go install` instead of `go get` ``` go get: installing executables with 'go get' in module mode is deprecated. Use 'go install pkg@version' instead. For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. ``` * Sync readme.md.tmpl with changes in README.md
1 parent bbb7797 commit e8f0f77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Download latest release from the [Releases](https://github.com/elastic/elastic-p
1515

1616
On macOS, use `xattr -r -d com.apple.quarantine elastic-package` after downloading to allow the binary to run.
1717

18-
Alternatively, you may use `go get` but you will not be able to use the `elastic-package version` command or check updates.
18+
Alternatively, you may use `go install` but you will not be able to use the `elastic-package version` command or check updates.
1919

2020
```bash
21-
go get github.com/elastic/elastic-package
21+
go install github.com/elastic/elastic-package@latest
2222
```
2323

2424
_Please make sure that you've correctly [setup environment variables](https://golang.org/doc/gopath_code.html#GOPATH) -

tools/readme/readme.md.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Download latest release from the [Releases](https://github.com/elastic/elastic-p
1515

1616
On macOS, use `xattr -r -d com.apple.quarantine elastic-package` after downloading to allow the binary to run.
1717

18-
Alternatively, you may use `go get` but you will not be able to use the `elastic-package version` command or check updates.
18+
Alternatively, you may use `go install` but you will not be able to use the `elastic-package version` command or check updates.
1919

2020
```bash
21-
go get github.com/elastic/elastic-package
21+
go install github.com/elastic/elastic-package@latest
2222
```
2323

2424
_Please make sure that you've correctly [setup environment variables](https://golang.org/doc/gopath_code.html#GOPATH) -

0 commit comments

Comments
 (0)