logic update

This commit is contained in:
Aparna Jyothi 2025-06-09 13:02:08 +05:30
parent 08ee4fc403
commit b8efbc5bb0
2 changed files with 13 additions and 17 deletions

2
dist/setup/index.js vendored
View file

@ -96934,7 +96934,6 @@ function cacheDependencies(cache, pythonVersion) {
core.warning(`The resolved cache-dependency-path does not exist: ${sourcePath}`); core.warning(`The resolved cache-dependency-path does not exist: ${sourcePath}`);
} }
else { else {
if (sourcePath !== targetPath) {
try { try {
fs_1.default.copyFileSync(sourcePath, targetPath); fs_1.default.copyFileSync(sourcePath, targetPath);
core.info(`Copied ${sourcePath} to ${targetPath}`); core.info(`Copied ${sourcePath} to ${targetPath}`);
@ -96943,7 +96942,6 @@ function cacheDependencies(cache, pythonVersion) {
core.warning(`Failed to copy file from ${sourcePath} to ${targetPath}: ${error}`); core.warning(`Failed to copy file from ${sourcePath} to ${targetPath}: ${error}`);
} }
} }
}
resolvedDependencyPath = path.relative(workspace, targetPath); resolvedDependencyPath = path.relative(workspace, targetPath);
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
} }

View file

@ -42,7 +42,6 @@ export async function cacheDependencies(cache: string, pythonVersion: string) {
`The resolved cache-dependency-path does not exist: ${sourcePath}` `The resolved cache-dependency-path does not exist: ${sourcePath}`
); );
} else { } else {
if (sourcePath !== targetPath) {
try { try {
fs.copyFileSync(sourcePath, targetPath); fs.copyFileSync(sourcePath, targetPath);
core.info(`Copied ${sourcePath} to ${targetPath}`); core.info(`Copied ${sourcePath} to ${targetPath}`);
@ -52,7 +51,6 @@ export async function cacheDependencies(cache: string, pythonVersion: string) {
); );
} }
} }
}
resolvedDependencyPath = path.relative(workspace, targetPath); resolvedDependencyPath = path.relative(workspace, targetPath);
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);