From 9348cdfd019ffb32e376a91c1400ece3c4c55e2a Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Tue, 7 Nov 2023 04:58:28 +0500 Subject: [PATCH] build(snap): changes node-js plugin to npm plugin for Core20 In an attempt to fix version compatibility of `GLIBC_2.28` base was upgraded from core18 to core20. Node-js plugin was deprecated for core20 and instead npm plugin has to be used. As npm plugin cannot specify the package manager to use, yarn is now installed globally during the override-build phase. --- snap/snapcraft.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index b83099428..799ddbf18 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -16,10 +16,8 @@ architectures: parts: jellyseerr: - plugin: nodejs - nodejs-version: '18.18.2' - nodejs-package-manager: 'yarn' - nodejs-yarn-version: v1.22.19 + plugin: npm + npm-node-version: '18.18.2' build-packages: - git - on arm64: @@ -69,6 +67,8 @@ parts: - CYPRESS_INSTALL_BINARY: '0' override-build: | set -e + # Install Yarn + npm install -g yarn # Set COMMIT_TAG before the build begins export COMMIT_TAG=$(cat $SNAPCRAFT_PART_BUILD/commit.txt) snapcraftctl build