Join GitHub today
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'?