Skip to content
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

_GOPATH incorrectly set for cross-compiled go_library targets #585

Closed
katzdm opened this issue Apr 5, 2019 · 0 comments
Closed

_GOPATH incorrectly set for cross-compiled go_library targets #585

katzdm opened this issue Apr 5, 2019 · 0 comments

Comments

@katzdm
Copy link
Contributor

katzdm commented Apr 5, 2019

By defining _GOPATH here, the variable seems to pick up the host CONFIG.OS and CONFIG.ARCH. The result is that setting --arch does not override the paths in _GOPATH; builds subsequently fail.

This appears to be fixable by inlining the definition of _GOPATH into _go_library_cmds and _go_binary_cmds. I'll put a PR together in a bit, if nobody beats me to it first :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant