Visitar URL original
Add OS info to the error message by MaksimZhukov · Pull Request #559 · actions/setup-python · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Regenerate the dist folder
  • Loading branch information
MaksimZhukov committed Dec 7, 2022
commit a8c419bcabc0e77f3ea5b83fffdff6166ce03d53
8 changes: 5 additions & 3 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66379,7 +66379,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
if (!installDir) {
const osInfo = yield utils_1.getOSInfo();
throw new Error([
`The version '${version}' with architecture '${architecture}' was not found for ${osInfo ? `${osInfo.osName} ${osInfo.osVersion}` : 'this operating system'}.`,
`The version '${version}' with architecture '${architecture}' was not found for ${osInfo
? `${osInfo.osName} ${osInfo.osVersion}`
: 'this operating system'}.`,
`The list of all available versions can be found here: ${installer.MANIFEST_URL}`
].join(os.EOL));
}
Expand Down Expand Up @@ -67054,7 +67056,7 @@ function getWindowsInfo() {
silent: true
});
const windowsVersion = stdout.trim().split(' ')[3];
return { osName: "Windows", osVersion: windowsVersion };
return { osName: 'Windows', osVersion: windowsVersion };
});
}
function getMacOSInfo() {
Expand All @@ -67063,7 +67065,7 @@ function getMacOSInfo() {
silent: true
});
const macOSVersion = stdout.trim();
return { osName: "macOS", osVersion: macOSVersion };
return { osName: 'macOS', osVersion: macOSVersion };
});
}
function getLinuxInfo() {
Expand Down