Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: Include package versions in the built binary #24063
Currently Go binaries only include the Go runtime version that was used at build time. The Go runtime version is accessible through the binary via the runtime.buildVersion symbol or at runtime via runtime.Version(). This information is often used to identify binaries that were built with an outdated or insecure Go runtime.
Could something similar be done for all the packages and their respective versions that go into a Go binary during 'vgo build'?