Skip to content

Commit

Permalink
[fix] Fix snap package build
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
csordasmarton committed Mar 11, 2022
1 parent 5f5b6b7 commit b5b5aca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5b5aca

Please sign in to comment.