Skip to content

Commit 3564ec5

Browse files
committed
cmd/api: ignore vendored packages
Fixes golang#15404 Change-Id: I16f2a34a1e4c3457053a1fc2141f21747cfb22b4 Reviewed-on: https://go-review.googlesource.com/22386 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
1 parent 3411d63 commit 3564ec5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cmd/api/goapi.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ func main() {
143143
w := NewWalker(context, filepath.Join(build.Default.GOROOT, "src"))
144144

145145
for _, name := range pkgNames {
146+
// Vendored packages do not contribute to our
147+
// public API surface.
148+
if strings.HasPrefix(name, "vendor/") {
149+
continue
150+
}
146151
// - Package "unsafe" contains special signatures requiring
147152
// extra care when printing them - ignore since it is not
148153
// going to change w/o a language change.

0 commit comments

Comments
 (0)