cmd/go: go mod vendor should copy files matched by //go:embed #43077
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What did you do?
In a package outside the main module (
example.com/p
), embed some files in a subdirectorysub
using a//go:embed
directive.From the main module, import
example.com/p
.Run
go mod vendor
.What did you expect to see?
The embedded files are present in
vendor/example.com/p/sub
. Other files from that directory are not vendored.What did you see instead?
vendor/example.com/p/sub
is not present.cc @bcmills @matloob @rsc
The text was updated successfully, but these errors were encountered: