mirror of https://github.com/golang/go.git
Copy the x/vuln/cmd/govulncheck/internal/govulncheck package and use it in internal/vulncheck. Fixes golang/go#52985. Change-Id: I3fb16b3d486ac462fca36aa53fd46e576041102d Reviewed-on: https://go-review.googlesource.com/c/tools/+/407114 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| README.md | ||
| cache.go | ||
| cache_test.go | ||
| copy.sh | ||
| source.go | ||
| util.go | ||
| util_test.go | ||
README.md
internal/govulncheck package
This package is a literal copy of the cmd/govulncheck/internal/govulncheck package in the vuln repo (https://go.googlesource.com/vuln).
The copy.sh does the copying, after removing all .go files here. To use it:
-
Clone the vuln repo to a directory next to the directory holding this repo (tools). After doing that your directory structure should look something like
~/repos/x/tools/gopls/... ~/repos/x/vuln/... -
cd to this directory.
-
Run
copy.sh.