mirror of
https://github.com/golang/go
synced 2024-11-18 07:04:52 -07:00
gopls/doc: document getting a specific version of gopls
People reading this doc may not know, how versions in "go get" work or how Git tags map to Go module versions. So, add an example of getting a specific version of gopls. Change-Id: Id75cc8829bbbf710c3c021eab7d956433ba4110e Reviewed-on: https://go-review.googlesource.com/c/tools/+/246418 Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This commit is contained in:
parent
6c149bb5ef
commit
155a6996be
@ -28,6 +28,15 @@ go get golang.org/x/tools/gopls@latest
|
||||
|
||||
**Do not** use the `-u` flag, as it will update your dependencies to incompatible versions.
|
||||
|
||||
To get a specific version of `gopls` (for example, to test a prerelease
|
||||
version), run:
|
||||
|
||||
```sh
|
||||
go get golang.org/x/tools/gopls@vX.Y.Z
|
||||
```
|
||||
|
||||
Where `vX.Y.Z` is the desired version.
|
||||
|
||||
If you see this error:
|
||||
|
||||
```sh
|
||||
|
Loading…
Reference in New Issue
Block a user