mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
cmd/api: ignore vendored packages
Fixes #15404 Change-Id: I16f2a34a1e4c3457053a1fc2141f21747cfb22b4 Reviewed-on: https://go-review.googlesource.com/22386 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
3411d63219
commit
3564ec52cd
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue