commit | 75312fb06703a759656ae75b3d1c24b4aae95dfe | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Wed May 29 16:33:14 2019 -0400 |
committer | Michael Matloob <matloob@golang.org> | Thu May 30 21:55:28 2019 +0000 |
tree | fd04cd8cc065526b076b59a9c24662d81d35fcb8 | |
parent | ce1a3806b557e2b3236499f772c2320f933d5a80 [diff] |
go/packages: support new main packages in overlays Refactor the overlay code to create package structs for new packages that don't already exist. This requires calling out to the go command to determine module roots to figure out which module a package belongs to. The extra go list call is done in sequence in this CL but can easily be done in parallel with other go list calls in the future. Change-Id: Ia0f7812fba250d154033038cb1e2afa7dedf0e16 Reviewed-on: https://go-review.googlesource.com/c/tools/+/179600 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
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.