-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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: can't load package: build constraints exclude all Go files in #24433
Comments
Seems like a duplicate of #24068. |
ALTree
changed the title
can't load package: package .: build constraints exclude all Go files in
cmd/go: can't load package: build constraints exclude all Go files in
Mar 17, 2018
Yes, this is a dup of #24068. We can keep this as a search-able reference for that error on the issue tracker, but let's close it. |
How this error can be solved? Thanks. |
I am also facing the same issue. How this error can be solved? |
This issue was closed as a duplicate of another; see #24068 and all the details there. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I attempted to cross-compile something on my darwin-amd64 machine.
It kept saying
can't load package: package .: build constraints exclude all Go files in
I had no build constraints in any of my files or dependency packages.
This confused me for hours as I kept trying different things until I realised it was because I was using cgo.
I think the error message should be more explanatory in c-go cross compilation situations.
For future readers:
https://github.com/karalabe/xgo
The text was updated successfully, but these errors were encountered: