Commit 3564ec52 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

cmd/api: ignore vendored packages

Fixes #15404

Change-Id: I16f2a34a1e4c3457053a1fc2141f21747cfb22b4
Reviewed-on: https://go-review.googlesource.com/22386Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
parent 3411d632
...@@ -143,6 +143,11 @@ func main() { ...@@ -143,6 +143,11 @@ func main() {
w := NewWalker(context, filepath.Join(build.Default.GOROOT, "src")) w := NewWalker(context, filepath.Join(build.Default.GOROOT, "src"))
for _, name := range pkgNames { for _, name := range pkgNames {
// Vendored packages do not contribute to our
// public API surface.
if strings.HasPrefix(name, "vendor/") {
continue
}
// - Package "unsafe" contains special signatures requiring // - Package "unsafe" contains special signatures requiring
// extra care when printing them - ignore since it is not // extra care when printing them - ignore since it is not
// going to change w/o a language change. // going to change w/o a language change.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment