From a80a1707986bcf484e54cb259cf1ae33e7c886a7 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Sun, 3 May 2020 18:40:24 -0400 Subject: [PATCH] no proxy fix --- .github/workflows/proxy.yml | 2 +- dist/index.js | 7 ------- src/installer.ts | 9 --------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/proxy.yml b/.github/workflows/proxy.yml index 5a3f638..6eaa157 100644 --- a/.github/workflows/proxy.yml +++ b/.github/workflows/proxy.yml @@ -53,4 +53,4 @@ jobs: with: node-version: 11 - name: Verify node and npm - run: __tests__/verify-node.sh 10 + run: __tests__/verify-node.sh 11 diff --git a/dist/index.js b/dist/index.js index abea063..3c7c17d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13013,22 +13013,15 @@ function getNode(versionSpec, stable, token) { // // Extract // - console.log(`Extracting ${downloadPath}`); - if (!fs.existsSync(downloadPath)) { - console.log('File not downloaded correctly'); - } let extPath; if (osPlat == 'win32') { let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe'); extPath = yield tc.extract7z(downloadPath, undefined, _7zPath); - console.log(`contents of ${extPath}`); - console.log(extPath); // 7z extracts to folder matching file name let nestedPath = path.join(extPath, path.basename(info.fileName, '.7z')); if (fs.existsSync(nestedPath)) { extPath = nestedPath; } - console.log(`using ${extPath}`); } else { extPath = yield tc.extractTar(downloadPath, undefined, [ diff --git a/src/installer.ts b/src/installer.ts index 3a1c8ad..29fbc3c 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -74,24 +74,15 @@ export async function getNode( // // Extract // - console.log(`Extracting ${downloadPath}`); - if (!fs.existsSync(downloadPath)) { - console.log('File not downloaded correctly'); - } - let extPath: string; if (osPlat == 'win32') { let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe'); extPath = await tc.extract7z(downloadPath, undefined, _7zPath); - console.log(`contents of ${extPath}`); - console.log(extPath); // 7z extracts to folder matching file name let nestedPath = path.join(extPath, path.basename(info.fileName, '.7z')); if (fs.existsSync(nestedPath)) { extPath = nestedPath; } - - console.log(`using ${extPath}`); } else { extPath = await tc.extractTar(downloadPath, undefined, [ 'xz',