mirror of
https://github.com/golang/go
synced 2024-11-18 09:04:49 -07:00
gopls/doc: document updating to an unstable version
Fixes golang/go#36751 Change-Id: Ib5036bcc1f8ee0ab11d9978eea597222e86cc085 Reviewed-on: https://go-review.googlesource.com/c/tools/+/216437 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
8fe064f891
commit
d33eef8e68
@ -39,6 +39,19 @@ then run
|
||||
GO111MODULE=on go get golang.org/x/tools/gopls@latest
|
||||
```
|
||||
|
||||
### Unstable versions
|
||||
|
||||
`go get` doesn't honor the `replace` directive in the `go.mod` of
|
||||
`gopls` when you are outside of the `gopls` module, so a simple `go get`
|
||||
with `@master` could fail. To actually update your `gopls` to the
|
||||
latest **unstable** version, use:
|
||||
|
||||
```sh
|
||||
$ go get golang.org/x/tools/gopls@master golang.org/x/tools@master
|
||||
```
|
||||
|
||||
In general, you should use `@latest` instead, to prevent frequent
|
||||
breakages.
|
||||
|
||||
## Configurations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user