cmd/go: vcs info not stamped when built listing .go files directly #51279
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
In general we stamp the VCS metadata only if the requested package is within a module in the workspace:
Since CL 339170 (CC @matloob), the fake package constructed from a list of source files is not considered to be in a module, because its source files are not in general guaranteed to be scanned by
Perhaps we could adjust that check to instead compare the package's directory with the directories containing the modules in the workspace.
Otherwise, VCS info are not stamped due to   golang/go#51279