-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improve --target=wasm experience when runtime not supported #3264
Comments
I think this is worth considering! The problematic bit, I think, is the use of cgo. Its cross-build story is "don't", they advise to always build natively. So, to build macos and windows binaries with Wasm enabled, we'd need to get those OSes into our release build runners, see also #3176. |
@srenatus I was hoping that cross-compiling w/ CGO wouldn't be so bad if we created our own Docker image that had the toolchains for darwin and windows installed. Is that not the case? If so, I agree we should probably just not panic and improve the error message a bit and then close this. I don't want to overcomplicate the build for this feature at this point in time. |
@tsandall I might just be having old (anec)data, let's try and find out. :) |
Fixed the error message for people still managing to build without wasm in #3416 ☝️ |
Fixes open-policy-agent#3264. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Expected Behavior
Running
opa eval --target=wasm '1+1'
should either evaluate or tell the user what it needs to do to get it working.Actual Behavior
Trace emitted and no instructions provided.
Additional Info
Someone with better insight into the problem suggested the following options:
The text was updated successfully, but these errors were encountered: