-
Notifications
You must be signed in to change notification settings - Fork 207
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
go_get with --arch=linux_x86 fails #584
Comments
Hey @peterebden - Thanks for addressing this one! Unfortunately, I believe there is a second, related issue.
Then this fails with
Note that this continues to work, when compiling with |
Ah yeah fair - hadn't gotten as far as testing that yet. I think you're probably right (and hopefully it is not hard). |
FWIW f9129b4 should fix that error - but most libraries will fail by missing imports because we don't provide a cross-compiled stdlib for them. Would be nice to do that at some point but it's a bit more work than the fixes here :) |
True, but you provided excellent guidance on http://plz.build for how to work around that, which I've already followed :-)
Worked like a charm. |
@peterebden I think you might need to make the There are additional uses of |
Ha nice, I should try that for testing I suppose :) Will circle back around to this one when I can! |
This is working now :-) |
Given a
go_get
rule in package//third_party/go
:Running
plz build //third_party/go:ratelimit
on MacOS will succeed. However, running:plz build --arch=linux_x86 //third_party/go:ratelimit
will fail. This is because the expected
ratelimit.v1.a
artifact goes into{TMP_DIR}/pkg/linux_386/gopkg.in/bsm/ratelimit.v1
, but plz expects to find the artifact in alinux_x86
directory. Consequently, running the same command with_386
architecture:plz build --arch=linux_386 //third_party/go:ratelimit
will succeed.
The text was updated successfully, but these errors were encountered: