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

golang wrap not building due to invalid wasi import #1925

Open
krisbitney opened this issue Oct 24, 2023 · 0 comments
Open

golang wrap not building due to invalid wasi import #1925

krisbitney opened this issue Oct 24, 2023 · 0 comments
Labels
type: bug Something isn't working

Comments

@krisbitney
Copy link
Contributor

# Copy the result to the build folder
cp ./build-staging/module_exports_imports_opt.wasm ./build/wrap.wasm

> docker run --rm -v /Users/kris/WebstormProjects/monorepo/packages/templates/wasm/golang/.polywrap/wasm/build/project:/project -v /Users/kris/WebstormProjects/monorepo/packages/templates/wasm/golang/.polywrap/wasm/build/linked-packages:/linked-packages polywrap/vm-base-go:0.1.6 /bin/bash -c "chmod -R 777 /project && chmod -R 777 /linked-packages"
🔄 Artifacts written to ./build
✅ Artifacts written to ./build
❌ Failed to compile Polywrap: Error: Invalid Wasm module found. /Users/kris/WebstormProjects/monorepo/packages/templates/wasm/golang/build/wrap.wasm is invalid. Error: ,Error: Unsupported wasm import namespace requested: "wasi_snapshot_preview1"; Supported wasm import namespaces: "env", "wrap"
error Command failed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant