polywrap / wrap-cli

Used to create, build, and integrate wraps.
https://polywrap.io
MIT License
170 stars 52 forks source link

golang wrap not building due to invalid wasi import #1925

Open krisbitney opened 1 year ago

krisbitney commented 1 year ago
# 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.