From: Brad Fitzpatrick Date: Fri, 22 Apr 2016 22:13:50 +0000 (+0000) Subject: cmd/api: ignore vendored packages X-Git-Tag: go1.7beta1~523 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3564ec52cda2a3c83aaf41159b26369ca4e7ecee;p=gostls13.git cmd/api: ignore vendored packages Fixes #15404 Change-Id: I16f2a34a1e4c3457053a1fc2141f21747cfb22b4 Reviewed-on: https://go-review.googlesource.com/22386 Reviewed-by: Matthew Dempsky --- diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go index 982c40b085..e9c91477c6 100644 --- a/src/cmd/api/goapi.go +++ b/src/cmd/api/goapi.go @@ -143,6 +143,11 @@ func main() { w := NewWalker(context, filepath.Join(build.Default.GOROOT, "src")) 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 // extra care when printing them - ignore since it is not // going to change w/o a language change.