mirror of
https://github.com/actions/setup-go
synced 2025-01-03 18:52:40 +00:00
move symlink check
Signed-off-by: Anton Troshin <anton@diagrid.io>
This commit is contained in:
parent
6cd0eaadd6
commit
fd3fcb34ee
1 changed files with 10 additions and 10 deletions
|
@ -239,6 +239,7 @@ async function cacheWindowsDir(
|
|||
fs.mkdirSync(path.dirname(cachePath.actualPath), {recursive: true});
|
||||
} else {
|
||||
core.info(`Directory ${cachePath.actualPath} already exists`);
|
||||
}
|
||||
// make sure the link is pointing to the actual cache directory
|
||||
const symlinkTarget = fs.readlinkSync(cachePath.defaultPath);
|
||||
if (symlinkTarget !== "") {
|
||||
|
@ -250,7 +251,6 @@ async function cacheWindowsDir(
|
|||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make outer code to continue using toolcache as if it were installed on c:
|
||||
// restore toolcache root to default drive c:
|
||||
|
|
Loading…
Reference in a new issue