diff --git a/docs/requirements.txt b/docs/requirements.txt index 8c13c5e998..13b624d522 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -17,7 +17,7 @@ craft-application==3.1.0 craft-archives==1.1.3 craft-cli==2.6.0 craft-grammar==1.2.0 -craft-parts==1.33.0 +craft-parts==1.33.1 craft-providers==1.24.2 craft-store==2.6.2 cryptography==42.0.8 diff --git a/requirements-devel.txt b/requirements-devel.txt index b8045f6cb3..62325a653b 100644 --- a/requirements-devel.txt +++ b/requirements-devel.txt @@ -15,7 +15,7 @@ craft-application==3.1.0 craft-archives==1.1.3 craft-cli==2.6.0 craft-grammar==1.2.0 -craft-parts==1.33.0 +craft-parts==1.33.1 craft-providers==1.24.2 craft-store==2.6.2 cryptography==42.0.8 diff --git a/requirements.txt b/requirements.txt index f4cc6581aa..77e189bb9c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ craft-application==3.1.0 craft-archives==1.1.3 craft-cli==2.6.0 craft-grammar==1.2.0 -craft-parts==1.33.0 +craft-parts==1.33.1 craft-providers==1.24.2 craft-store==2.6.2 cryptography==42.0.8 diff --git a/tests/spread/core24/npm-reentrant/hello.js b/tests/spread/core24/npm-reentrant/hello.js new file mode 100644 index 0000000000..8001048aa4 --- /dev/null +++ b/tests/spread/core24/npm-reentrant/hello.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +console.log('hello world'); diff --git a/tests/spread/core24/npm-reentrant/package-lock.json b/tests/spread/core24/npm-reentrant/package-lock.json new file mode 100644 index 0000000000..cf8ee3b99e --- /dev/null +++ b/tests/spread/core24/npm-reentrant/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "npm-hello", + "version": "1.0.0", + "lockfileVersion": 1 +} diff --git a/tests/spread/core24/npm-reentrant/package.json b/tests/spread/core24/npm-reentrant/package.json new file mode 100644 index 0000000000..c45d277657 --- /dev/null +++ b/tests/spread/core24/npm-reentrant/package.json @@ -0,0 +1,13 @@ +{ + "name": "npm-hello", + "version": "1.0.0", + "description": "Testing grounds for snapcraft integration tests", + "bin": { + "npm-hello": "hello.js" + }, + "scripts": { + "npm-hello": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "GPL-3.0" +} diff --git a/tests/spread/core24/npm-reentrant/snap/snapcraft.yaml b/tests/spread/core24/npm-reentrant/snap/snapcraft.yaml new file mode 100644 index 0000000000..7a75149e72 --- /dev/null +++ b/tests/spread/core24/npm-reentrant/snap/snapcraft.yaml @@ -0,0 +1,15 @@ +name: npm-reentrant +version: "1.0" +summary: test the npm plugin +description: Check that the npm plugin works across snapcraft calls + +confinement: strict +grade: devel +base: core24 + +parts: + hello: + source: . + plugin: npm + npm-include-node: true + npm-node-version: 22.1.0 diff --git a/tests/spread/core24/npm-reentrant/task.yaml b/tests/spread/core24/npm-reentrant/task.yaml new file mode 100644 index 0000000000..9ad7c48d5d --- /dev/null +++ b/tests/spread/core24/npm-reentrant/task.yaml @@ -0,0 +1,11 @@ +summary: Pull, then Build, a Node snap + +execute: | + snapcraft pull + snapcraft build + snapcraft pack + test -f npm-reentrant*.snap + +restore: | + snapcraft clean + rm -f ./*.snap