summaryrefslogtreecommitdiff
path: root/src/cmd/internal/diff/diff.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2021-01-13 20:58:00 -0500
committerMichael Matloob <matloob@golang.org>2021-01-20 17:37:54 +0000
commit6e243ce71d910876839d1bad4adf9b259c3a8e21 (patch)
tree80b82ce3fe20e21accef4e12ed20850a19505502 /src/cmd/internal/diff/diff.go
parentbe28e5abc5ddca0d6b2d8c91b7bb9c05717154e7 (diff)
downloadgo-git-6e243ce71d910876839d1bad4adf9b259c3a8e21.tar.gz
cmd/go: have go mod vendor copy embedded files in subdirs
If a package vendored with go mod vendor depends on embedded files contained in subdirectories, copy them into the the corresponding place in the module's vendor tree. (Embeds in parent directories are disallowed by the embed pattern rules, and embeds in the same directory are copied because go mod vendor already copies the non-go files in the package's own directory). Export the vendor pattern expansion code in internal/load so internal/modcmd's vendor code can use it. Fixes #43077 Change-Id: I61edb344d73df590574a6498ffb6069e8d72a147 Reviewed-on: https://go-review.googlesource.com/c/go/+/283641 Trust: Michael Matloob <matloob@golang.org> Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/internal/diff/diff.go')
0 files changed, 0 insertions, 0 deletions