Keep setup-node available in isolated packaging tests

This commit is contained in:
salman committed 2026-10-29 21:13:08 +01:00
1 parent 882f594d5a
commit 30a8b0ce80
1 file changed
+2
+2
View File
@@ -337,6 +337,8 @@ try {
// Hide any host fpm so the fixture actually tests cache selection.
const fakeBin = path.join(temporary, 'fake-bin');
fs.mkdirSync(fakeBin);
// setup-node may install outside /usr/bin; retain Node in this isolated PATH.
fs.symlinkSync(process.execPath, path.join(fakeBin, 'node'));
fs.writeFileSync(path.join(fakeBin, 'fpm'), '#!/bin/sh\nexit 127\n', { mode: 0o755 });
const packageRuntime = createRuntime('package-runtime');
for (const layout of ['fpm@2/fpm-test/fpm', 'fpm/fpm-test/fpm']) {