Join GitHub today
cmd/go: go mod vendor should ignore README, CONTRIBUTING and any other non metadata file is part of a subdirectory of the module #27337
What version of Go are you using (
I'm a little confused about the report, but it sounds like what is being requested is:
The files that are copied now are the ones that may be legally required to copy the code (basically, copyright notices and supporting files). There is no attempt to make the vendored copy useful in any other way, such as by copying READMEs etc. The assumption is that people who want to look at the code will look at an original copy, not the trimmed copy in a vendor directory.
I think the copy set should be left alone.
@rsc: sorry, I may have not been clear enough. We are saying the same thing.
For instance, after running
As soon as some files like those are in a subdirectory of the module itself, it's getting copied.
Edit: rephrased bug title to better match intent