Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/go: populate debug.Module.Sum even if build in devel mode #33533
Related to #29814
When a binary is build from within a module's source tree, the output from runtime/debug.ReadBuildInfo currently reports the module as having version
However, I don't think there is technical reason why the
This has usefulness when building commandline tools from the source tree, and you want to at least emit some versioning information that distinguishes one build from another build at a different commit.