mirror of
https://github.com/actions/setup-python.git
synced 2025-06-27 21:23:48 +00:00
documentation update
This commit is contained in:
parent
cfd17d94f5
commit
6090563d91
3 changed files with 18 additions and 14 deletions
14
dist/setup/index.js
vendored
14
dist/setup/index.js
vendored
|
@ -96934,12 +96934,14 @@ function cacheDependencies(cache, pythonVersion) {
|
|||
core.warning(`The resolved cache-dependency-path does not exist: ${sourcePath}`);
|
||||
}
|
||||
else {
|
||||
try {
|
||||
fs_1.default.copyFileSync(sourcePath, targetPath);
|
||||
core.info(`Copied ${sourcePath} to ${targetPath}`);
|
||||
}
|
||||
catch (error) {
|
||||
core.warning(`Failed to copy file from ${sourcePath} to ${targetPath}: ${error}`);
|
||||
if (sourcePath !== targetPath) {
|
||||
try {
|
||||
fs_1.default.copyFileSync(sourcePath, targetPath);
|
||||
core.info(`Copied ${sourcePath} to ${targetPath}`);
|
||||
}
|
||||
catch (error) {
|
||||
core.warning(`Failed to copy file from ${sourcePath} to ${targetPath}: ${error}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
resolvedDependencyPath = path.relative(workspace, targetPath);
|
||||
|
|
|
@ -411,7 +411,7 @@ steps:
|
|||
- run: pip install -e .
|
||||
# Or pip install -e '.[test]' to install test dependencies
|
||||
```
|
||||
Note : cache-dependency-path supports files located outside the workspace root by copying them into the workspace to enable proper caching.
|
||||
Note: cache-dependency-path supports files located outside the workspace root by copying them into the workspace to enable proper caching.
|
||||
# Outputs and environment variables
|
||||
|
||||
## Outputs
|
||||
|
|
|
@ -42,13 +42,15 @@ export async function cacheDependencies(cache: string, pythonVersion: string) {
|
|||
`The resolved cache-dependency-path does not exist: ${sourcePath}`
|
||||
);
|
||||
} else {
|
||||
try {
|
||||
fs.copyFileSync(sourcePath, targetPath);
|
||||
core.info(`Copied ${sourcePath} to ${targetPath}`);
|
||||
} catch (error) {
|
||||
core.warning(
|
||||
`Failed to copy file from ${sourcePath} to ${targetPath}: ${error}`
|
||||
);
|
||||
if (sourcePath !== targetPath) {
|
||||
try {
|
||||
fs.copyFileSync(sourcePath, targetPath);
|
||||
core.info(`Copied ${sourcePath} to ${targetPath}`);
|
||||
} catch (error) {
|
||||
core.warning(
|
||||
`Failed to copy file from ${sourcePath} to ${targetPath}: ${error}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue