Skip to content

m1 mac/arm docker environment setup #146

@TyceHerrman

Description

@TyceHerrman

While using the docker-compose up environment setup, I receive the following warning (not sure if it's relevant) and error on my m1 mac:


=> ERROR [rust-builder 22/31] RUN wasm-pack build  --release --scope maticoapp

#0 384.1 warning: be sure to add `/root/.cache/.wasm-pack/.wasm-bindgen-cargo-install-0.2.81/bin` to your PATH to be able to run the installed binaries
#0 384.2 Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target!
#0 384.2 To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
------
failed to solve: executor failed running [/bin/sh -c wasm-pack build  --release --scope maticoapp]: exit code: 1

This seems to be related to this issue with wasm-pack: drager/wasm-pack#913.

It looks like it was addressed in wasm-pack v0.10.2: https://github.com/rustwasm/wasm-pack/releases/tag/v0.10.2

I'm not able to definitively determine which version of wasm-pack Matico is using, but it looks like in the Dockerfile that it's pulling the latest version from the wasm-pack github repo (I could be misinterpreting that though). If that's the case, not sure why this error would occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions