Open om26er opened 1 month ago
For now I do this in my docker container build to patch craft_parts. Obviously another "hack" would be to export SNAP_ARCH parameter in docker container as well and then a different codepath would execute.
RUN sed -i 's|_NODE_ARCH_FROM_PLATFORM = {"x86_64": {"32bit": "x86", "64bit": "x64"}}|_NODE_ARCH_FROM_PLATFORM = {"x86_64": {"32bit": "x86", "64bit": "x64"}, "aarch64": {"64bit": "arm64"}}|g' /snap/snapcraft/current/lib/python3.10/site-packages/craft_parts/plugins/npm_plugin.py
cc @sergiusens -- this issue was encountered with snapcraft 8.4.3 running on docker so would be good to have fixed in a release
When building nodejs based snap in a docker container using snapcraft 8.4.3 the build fails with these logs