fix: Add pypy- prefix to version used for cache key when appropriate (#39)

Add `pypy-` prefix to version used for cache key when appropriate.

Signed-off-by: Frost Ming <me@frostming.com>
This commit is contained in:
David Montague 2023-07-25 03:58:38 -06:00 committed by Frost Ming
parent c21af6fa77
commit c287ac6f97
No known key found for this signature in database
GPG Key ID: 5BFA9CB4DDA943BF
2 changed files with 2 additions and 2 deletions

2
dist/setup-pdm.js vendored
View File

@ -77528,7 +77528,7 @@ async function findPythonVersion(version, architecture, allowPreReleases, update
core6.info(
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
);
return installed.resolvedPythonVersion;
return `pypy-${installed.resolvedPythonVersion}`;
} else {
const installed = await useCpythonVersion(
version,

View File

@ -34,7 +34,7 @@ export async function findPythonVersion(version: string, architecture: string, a
core.info(
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
);
return installed.resolvedPythonVersion;
return `pypy-${installed.resolvedPythonVersion}`;
} else {
const installed = await useCpythonVersion(
version,