Skip to content

Commit 42746a4

Browse files
author
Bryan MacFarlane
committed
dbg
1 parent c8617ac commit 42746a4

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12975,6 +12975,7 @@ const io = __importStar(__webpack_require__(1));
1297512975
const tc = __importStar(__webpack_require__(533));
1297612976
const path = __importStar(__webpack_require__(622));
1297712977
const semver = __importStar(__webpack_require__(280));
12978+
const fs = __webpack_require__(747);
1297812979
function getNode(versionSpec, stable, token) {
1297912980
return __awaiter(this, void 0, void 0, function* () {
1298012981
let osPlat = os.platform();
@@ -13014,6 +13015,8 @@ function getNode(versionSpec, stable, token) {
1301413015
let extPath;
1301513016
if (osPlat == 'win32') {
1301613017
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
13018+
console.log(`downloadPath: ${downloadPath}`);
13019+
console.log(JSON.stringify(fs.statSync(downloadPath)));
1301713020
extPath = yield tc.extract7z(downloadPath, undefined, _7zPath);
1301813021
// 7z extracts to folder matching file name
1301913022
extPath = path.join(extPath, path.basename(downloadPath));

src/installer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as tc from '@actions/tool-cache';
77
import * as path from 'path';
88
import * as semver from 'semver';
99
import {Url} from 'url';
10+
import fs = require('fs');
1011

1112
//
1213
// Node versions interface
@@ -76,6 +77,9 @@ export async function getNode(
7677
if (osPlat == 'win32') {
7778
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
7879

80+
console.log(`downloadPath: ${downloadPath}`);
81+
console.log(JSON.stringify(fs.statSync(downloadPath)));
82+
7983
extPath = await tc.extract7z(downloadPath, undefined, _7zPath);
8084
// 7z extracts to folder matching file name
8185
extPath = path.join(extPath, path.basename(downloadPath));

0 commit comments

Comments
 (0)