commit | b445f275a75454520fe7aa6299e17aea0b6c6a82 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Mar 22 16:56:34 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Mar 23 12:19:47 2022 +0000 |
tree | 76d2f7586f856a2a166f54830e54366126d1782e | |
parent | a90fa8a757053f228ac2b5209dc60f313210a01f [diff] |
cmd/govulncheck: fail in GOPATH mode govulncheck requires module information to find vulnerabilities. But in GOPATH mode, there is no module information. Instead of silently succeeding in that case, govulncheck fails with an error. Also, fix an off-by-one bug that could result in a panic if only the top function in a call stack is in a top package. Fixes golang/go#51591 Change-Id: I9923c1f03aa0a101de86fe03daaeeefc1d1f5bdf Reviewed-on: https://go-review.googlesource.com/c/exp/+/394774 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.