Check failure fix

This commit is contained in:
Aparna Jyothi 2025-06-19 13:28:45 +05:30
parent 6d7172dabe
commit fab5a1e24c
2 changed files with 9 additions and 11 deletions

8
dist/setup/index.js vendored
View file

@ -96947,14 +96947,14 @@ function cacheDependencies(cache, pythonVersion) {
// Copy file asynchronously // Copy file asynchronously
yield fs_1.default.promises.copyFile(sourcePath, targetPath); yield fs_1.default.promises.copyFile(sourcePath, targetPath);
core.info(`Copied ${sourcePath} to ${targetPath}`); core.info(`Copied ${sourcePath} to ${targetPath}`);
resolvedDependencyPath = path
.relative(workspace, targetPath)
.replace(/\\/g, '/');
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
} }
else { else {
core.info(`Dependency file is already inside the workspace: ${sourcePath}`); core.info(`Dependency file is already inside the workspace: ${sourcePath}`);
} }
resolvedDependencyPath = path
.relative(workspace, targetPath)
.replace(/\\/g, '/');
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
} }
} }
catch (error) { catch (error) {

View file

@ -53,18 +53,16 @@ export async function cacheDependencies(cache: string, pythonVersion: string) {
// Copy file asynchronously // Copy file asynchronously
await fs.promises.copyFile(sourcePath, targetPath); await fs.promises.copyFile(sourcePath, targetPath);
core.info(`Copied ${sourcePath} to ${targetPath}`); core.info(`Copied ${sourcePath} to ${targetPath}`);
resolvedDependencyPath = path
.relative(workspace, targetPath)
.replace(/\\/g, '/');
core.info(
`Resolved cache-dependency-path: ${resolvedDependencyPath}`
);
} else { } else {
core.info( core.info(
`Dependency file is already inside the workspace: ${sourcePath}` `Dependency file is already inside the workspace: ${sourcePath}`
); );
} }
resolvedDependencyPath = path
.relative(workspace, targetPath)
.replace(/\\/g, '/');
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
} }
} catch (error) { } catch (error) {
core.warning( core.warning(