commit | 428f1ab0ca03a50bf8ac61408423f510675cd5a9 | [log] [tgz] |
---|---|---|
author | Rohan Challa <rohan@golang.org> | Thu Jan 09 20:40:52 2020 -0500 |
committer | Rohan Challa <rohan@golang.org> | Fri Jan 10 14:27:00 2020 +0000 |
tree | f186e737a5468f26c7797d8b85a0471c46ad4b7f | |
parent | e2f26524b78cce00305e6af91fbd13ab567aaaa3 [diff] |
internal/lsp/mod: test go.mod is unchanged when tempModfile=true This change adds a test to ensure that your go.mod file remains unchanged when the tempModfile flag is activated. Specifically, it adds a test to ensure that a go directive does not get added to a user's go.mod file when there was not one included before. Updates golang/go#36247 Change-Id: If8db5508ace5b7222112408255ffa66e4d38797f Reviewed-on: https://go-review.googlesource.com/c/tools/+/214260 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.