From 40e244d750de0ae57e0038d4e90fff53bc317606 Mon Sep 17 00:00:00 2001 From: AlyonaSviridenko Date: Tue, 3 Aug 2021 19:13:19 +0300 Subject: [PATCH] Bypass another check --- __tests__/installer.test.ts | 3 ++- dist/index.js | 3 ++- src/installer.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index c5797708..9d577a53 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -88,7 +88,8 @@ describe('installer tests', () => { } }, 100000); - it('Uses version of node installed in cache', async () => { + // Usage of pre-cached Node.js is temporarily disabled. + xit('Uses version of node installed in cache', async () => { const nodeDir: string = path.join(toolDir, 'node', '250.0.0', os.arch()); await io.mkdirP(nodeDir); fs.writeFileSync(`${nodeDir}.complete`, 'hello'); diff --git a/dist/index.js b/dist/index.js index 642ae83e..69c25561 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12249,7 +12249,8 @@ function getNode(versionSpec) { // check cache toolPath = tc.find('node', version); } - if (!toolPath) { + // Usage of pre-cached Node.js is temporarily disabled. + if (true) { // download, extract, cache toolPath = yield acquireNode(version); } diff --git a/src/installer.ts b/src/installer.ts index a83fba9f..6267e0c8 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -46,7 +46,8 @@ export async function getNode(versionSpec: string) { toolPath = tc.find('node', version); } - if (!toolPath) { + // Usage of pre-cached Node.js is temporarily disabled. + if (true) { // download, extract, cache toolPath = await acquireNode(version); }