mirror of
https://github.com/actions/setup-python.git
synced 2025-06-22 11:57:57 +02:00
@ -98,7 +98,7 @@ export async function findPyPyVersion(
|
||||
core.addPath(pythonLocation);
|
||||
core.addPath(_binDir);
|
||||
}
|
||||
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
|
||||
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion);
|
||||
core.setOutput('python-path', pythonPath);
|
||||
|
||||
return {resolvedPyPyVersion, resolvedPythonVersion};
|
||||
|
@ -233,7 +233,7 @@ export function findRelease(
|
||||
return {
|
||||
foundAsset,
|
||||
resolvedPythonVersion: foundRelease.python_version,
|
||||
resolvedPyPyVersion: foundRelease.pypy_version
|
||||
resolvedPyPyVersion: foundRelease.pypy_version.trim()
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ export function readExactPyPyVersionFile(installDir: string) {
|
||||
let pypyVersion = '';
|
||||
let fileVersion = path.join(installDir, PYPY_VERSION_FILE);
|
||||
if (fs.existsSync(fileVersion)) {
|
||||
pypyVersion = fs.readFileSync(fileVersion).toString();
|
||||
pypyVersion = fs.readFileSync(fileVersion).toString().trim();
|
||||
}
|
||||
|
||||
return pypyVersion;
|
||||
|
Reference in New Issue
Block a user