mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 05:33:47 +00:00
check failure fix
This commit is contained in:
parent
566d40e37b
commit
8ae6b15df2
2 changed files with 8 additions and 2 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -96951,7 +96951,9 @@ function cacheDependencies(cache, pythonVersion) {
|
||||||
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);
|
resolvedDependencyPath = path
|
||||||
|
.relative(workspace, targetPath)
|
||||||
|
.replace(/\\/g, '/');
|
||||||
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
|
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ function isPyPyVersion(versionSpec: string) {
|
||||||
function isGraalPyVersion(versionSpec: string) {
|
function isGraalPyVersion(versionSpec: string) {
|
||||||
return versionSpec.startsWith('graalpy');
|
return versionSpec.startsWith('graalpy');
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function cacheDependencies(cache: string, pythonVersion: string) {
|
export async function cacheDependencies(cache: string, pythonVersion: string) {
|
||||||
const cacheDependencyPath =
|
const cacheDependencyPath =
|
||||||
core.getInput('cache-dependency-path') || undefined;
|
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}`
|
`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}`);
|
core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue