-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: improve documentation of GOAMD64 environment variable #50174
Comments
We currently have some docs in: https://github.com/golang/go/wiki/MinimumRequirements#amd64
The cache should not require cleaning when changing
The binary when run will print a reasonable error message in such cases. I'm not sure I understand what other behavior you thought might happen.
Agreed. Machines are complicated - our hope is it gets faster with higher vX numbers but you would have to check your binary to be sure. |
I will create a CL to reference this text in the Release Notes and the environment documentation instead of the Wikipedia link. Note that I have no problems with the implementation. I just lacked documentation, having no experience with microarchitecture support in Go. I suppose there are many developers working exclusively on amd64 that will be in the same position. |
Change https://golang.org/cl/372194 mentions this issue: |
The change clarifies in the release notes for go1.18 that the variable is for compilation and references the microarchitecture description in the Go Wiki, https://golang.org/wiki/MinimumRequirements#amd64, and references the same information in the output of go help environment. Fixes golang#50174 Change-Id: I6a7d5a06f48463a810c96cc9c76fe66113d5147c Reviewed-on: https://go-review.googlesource.com/c/go/+/372194 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No, this is for go1.18beta1.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I did some tests using the GOAMD64 environment variable.
What did you expect to see?
Release notes that mention that the variable is only relevant for compilation.
Documentation provided by go help environment that informs:
What did you see instead?
Terse documentation that didn't answer the questions I had
The text was updated successfully, but these errors were encountered: