check failure fix

This commit is contained in:
Aparna Jyothi 2025-06-09 14:13:03 +05:30
parent 566d40e37b
commit 8ae6b15df2
2 changed files with 8 additions and 2 deletions

4
dist/setup/index.js vendored
View file

@ -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}`);
}
}

View file

@ -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) {