From c287ac6f97f5fa767aa06946c7f55f40100b78c1 Mon Sep 17 00:00:00 2001 From: David Montague <35119617+dmontagu@users.noreply.github.com> Date: Tue, 25 Jul 2023 03:58:38 -0600 Subject: [PATCH] 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 --- dist/setup-pdm.js | 2 +- src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup-pdm.js b/dist/setup-pdm.js index d1c9a01..8d6eae3 100644 --- a/dist/setup-pdm.js +++ b/dist/setup-pdm.js @@ -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, diff --git a/src/utils.ts b/src/utils.ts index 32e5a95..40f7b33 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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,