-
Notifications
You must be signed in to change notification settings - Fork 18k
GOARCH=arm64 go build can't find imports #68007
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
Comments
the package has C dependencies, CGo is disabled by default when cross compiling. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
My apologies. I thought this was a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go version
go version go1.22.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Given a directory of the following files:
go.mod
go.sum
main.go
Successful
Failure
What did you see happen?
On Linux and an arm64 Mac, the cross-compiling to
GOARCH=arm64
fails. Whereas the compiling toGOARCH=amd64
succeeds.What did you expect to see?
Success for both
GOARCH=arm64
andGOARCH=amd64
The text was updated successfully, but these errors were encountered: