commit | a94d7df2cbc86f0529cda4092aef610aaf26e257 | [log] [tgz] |
---|---|---|
author | Steven L <imgroxx@gmail.com> | Sun Mar 17 21:01:14 2019 +0000 |
committer | Michael Matloob <matloob@golang.org> | Thu Mar 21 21:13:22 2019 +0000 |
tree | dc18f6ebf1a007db405ea8b41e460470a4160bd3 | |
parent | 43e94f73381ff6c32de35fb91fd13969d352f35a [diff] |
go/analysis/internal/checker: don't clobber fact when codeFact fails `codeFact` returns `nil, err` on errors, which results in error messages like: panic: internal error: encoding of nil fact failed in [analyzer] Though that and the stacktrace are often enough to identify the cause, the nil hides the actual source of the problem. Change-Id: Iddcdee386a5c64c6567d2727ebe7a77fe21927e9 GitHub-Last-Rev: 92163c2a5a631817319c992f7445f86d95130514 GitHub-Pull-Request: golang/tools#78 Reviewed-on: https://go-review.googlesource.com/c/tools/+/167997 Reviewed-by: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@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.