From b5b5aca03d0aee6a6d86ee6218ca89f419df9b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Csord=C3=A1s?= Date: Fri, 11 Mar 2022 12:17:07 +0100 Subject: [PATCH] [fix] Fix snap package build On snap package build we need to skip downloading `geckodriver` which is used only to run test cases otherwise we will get the following error: ``` npm ERR! path /node_modules/geckodriver npm ERR! command failed npm ERR! command sh -c node index.js ``` --- snap/snapcraft.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 317bf8569a..4d843969b1 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -61,5 +61,12 @@ parts: npm config set scripts-prepend-node-path true npm config set unsafe-perm true + + # This is needed to fix the following error during npm install: + # npm ERR! path /node_modules/geckodriver + # npm ERR! command failed + # npm ERR! command sh -c node index.js + export GECKODRIVER_SKIP_DOWNLOAD=true + make package cp -r $SNAPCRAFT_PART_BUILD/build/CodeChecker $SNAPCRAFT_PART_INSTALL