From 8ae6b15df296d7dabc5c879ead20c1ed96b28938 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Mon, 9 Jun 2025 14:13:03 +0530 Subject: [PATCH] check failure fix --- dist/setup/index.js | 4 +++- src/setup-python.ts | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 70d05b69..cb1f039f 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96951,7 +96951,9 @@ function cacheDependencies(cache, pythonVersion) { else { core.info(`Dependency file is already inside the workspace: ${sourcePath}`); } - resolvedDependencyPath = path.relative(workspace, targetPath); + resolvedDependencyPath = path + .relative(workspace, targetPath) + .replace(/\\/g, '/'); core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); } } diff --git a/src/setup-python.ts b/src/setup-python.ts index a1758eaf..106b415a 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -21,6 +21,7 @@ function isPyPyVersion(versionSpec: string) { function isGraalPyVersion(versionSpec: string) { return versionSpec.startsWith('graalpy'); } + export async function cacheDependencies(cache: string, pythonVersion: string) { const cacheDependencyPath = core.getInput('cache-dependency-path') || undefined; @@ -57,7 +58,10 @@ export async function cacheDependencies(cache: string, pythonVersion: string) { `Dependency file is already inside the workspace: ${sourcePath}` ); } - resolvedDependencyPath = path.relative(workspace, targetPath); + + resolvedDependencyPath = path + .relative(workspace, targetPath) + .replace(/\\/g, '/'); core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); } } catch (error) {