commit | ee04797aa0b6be5ce3d5f7ac0f91e34716b3acdf | [log] [tgz] |
---|---|---|
author | Tim King <taking@google.com> | Wed Oct 06 14:30:54 2021 -0700 |
committer | Tim King <taking@google.com> | Fri Oct 08 22:21:41 2021 +0000 |
tree | f0e42d12e91291c307d285bd74332d4f829d9bcc | |
parent | c5188f24a678a7a6c1651fa02582567328c63dd7 [diff] |
go/types/objectpath: canonical order for methods The method ordering in types can depend on the parse order for types. In order to make objectpath robust against this, simply encode all methods with respect to a canonical lexicographical ordering. Fixes golang/go#44195 Change-Id: I4177d9b4e094452f71d4db1813a5a36b54d0d70a Reviewed-on: https://go-review.googlesource.com/c/tools/+/354433 Run-TryBot: Tim King <taking@google.com> Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Trust: Zvonimir Pavlinovic <zpavlinovic@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 prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
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.