From 4a3d7346e2e00dc85546722794a3985f8f1b5022 Mon Sep 17 00:00:00 2001 From: SettingDust Date: Sat, 1 Oct 2022 18:07:31 +0800 Subject: [PATCH 1/3] chore: debug code --- dist/setup/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index 694da9591..5417c66fb 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -10192,8 +10192,10 @@ function _findMatch(versionSpec, stable, candidates, archFilter) { file = candidate.files.find(item => { core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`); let chk = item.arch === archFilter && item.platform === platFilter; + console.log(chk) if (chk && item.platform_version) { const osVersion = module.exports._getOsVersion(); + console.log(osVersion) if (osVersion === item.platform_version) { chk = true; } From 5457041f12e4068a8a20912134b5684e36ff6505 Mon Sep 17 00:00:00 2001 From: SettingDust Date: Sat, 1 Oct 2022 18:11:40 +0800 Subject: [PATCH 2/3] test: debug code --- dist/setup/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 5417c66fb..e950b982b 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -10192,10 +10192,8 @@ function _findMatch(versionSpec, stable, candidates, archFilter) { file = candidate.files.find(item => { core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`); let chk = item.arch === archFilter && item.platform === platFilter; - console.log(chk) if (chk && item.platform_version) { const osVersion = module.exports._getOsVersion(); - console.log(osVersion) if (osVersion === item.platform_version) { chk = true; } @@ -10226,6 +10224,7 @@ function _getOsVersion() { // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python) const plat = os.platform(); let version = ''; + console.log(plat) if (plat === 'darwin') { version = cp.execSync('sw_vers -productVersion').toString(); } From 5ec2b307570f01f678c793ceeec95c7a6b6cb6dc Mon Sep 17 00:00:00 2001 From: SettingDust Date: Sat, 1 Oct 2022 18:31:20 +0800 Subject: [PATCH 3/3] test: debug code --- dist/setup/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index e950b982b..3b458ba18 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -10224,7 +10224,6 @@ function _getOsVersion() { // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python) const plat = os.platform(); let version = ''; - console.log(plat) if (plat === 'darwin') { version = cp.execSync('sw_vers -productVersion').toString(); } @@ -10256,6 +10255,7 @@ function _readLinuxVersionFile() { if (fs.existsSync(lsbFile)) { contents = fs.readFileSync(lsbFile).toString(); } + core_1.debug(contents); return contents; } exports._readLinuxVersionFile = _readLinuxVersionFile;