]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: understand vendor directories in module mode
authorBryan C. Mills <bcmills@google.com>
Thu, 31 Oct 2019 14:03:54 +0000 (10:03 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 6 Nov 2019 18:27:09 +0000 (18:27 +0000)
commit3c2979682d0351fbce20ccf7636b86a629ca4bc9
tree14af6c853eda66f15e339ba9b391a05d30c0d8f1
parenta2b1dc863fe8effbb2aba2598fd37d3944c1dc4f
cmd/doc: understand vendor directories in module mode

This change employs the same strategy as in CL 203017
to detect when vendoring is in use, and if so treats
the vendor directory as a (non-module, prefixless) root.

The integration test also verifies that the 'std' and 'cmd'
modules are included and their vendored dependencies are
visible (as they are with 'go list') even when outside of
those modules.

Fixes #35224

Change-Id: I18cd01218e9eb97c1fc6e2401c1907536b0b95f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/205577
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/doc/dirs.go
src/cmd/doc/doc_test.go
src/cmd/go/testdata/script/mod_doc.txt