-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: missing result of ReadBuildInfo in init function #29628
Comments
If I change |
https://tip.golang.org/pkg/go/build/#hdr-Build_Constraints
I think this is what you are experiencing. |
As mentioned in slack #modules this is likely due to I've put my
|
Change https://golang.org/cl/157097 mentions this issue: |
Change https://golang.org/cl/158357 mentions this issue: |
…ed during linking Fixes #28753 Updates #29628 Change-Id: I4a561be7d491a0d088e656b00151ae1bdbd16a84 Reviewed-on: https://go-review.googlesource.com/c/158357 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Russ Cox <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I've tried to read build info in app retrieved with
go get
:Then run
~/go/bin/go-versioning-example
.Here is a package to reproduce: https://github.com/vearutop/go-versioning-example
main
package has two files:main.go
andversion.go
.version.go
has// +build go1.12
andinit
function that checksReadBuildInfo
.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: