From da9bf25ba82c540abdb6bbc1ed943ba91c995442 Mon Sep 17 00:00:00 2001 From: Omer Akram Date: Sat, 19 Oct 2024 20:20:51 +0500 Subject: [PATCH] node plugin: dont crash when running on non-snap arm64 env --- craft_parts/plugins/npm_plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/craft_parts/plugins/npm_plugin.py b/craft_parts/plugins/npm_plugin.py index 465417dc..81ded6ea 100644 --- a/craft_parts/plugins/npm_plugin.py +++ b/craft_parts/plugins/npm_plugin.py @@ -44,7 +44,10 @@ "ppc64el": "ppc64le", "s390x": "s390x", } -_NODE_ARCH_FROM_PLATFORM = {"x86_64": {"32bit": "x86", "64bit": "x64"}} +_NODE_ARCH_FROM_PLATFORM = { + "x86_64": {"32bit": "x86", "64bit": "x64"}, + "aarch64": {"64bit": "arm64"}, +} class NpmPluginProperties(PluginProperties, frozen=True):