mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2024-12-26 23:12:21 -05:00
build
Signed-off-by: Anton Troshin <anton@diagrid.io>
This commit is contained in:
parent
0859a18f70
commit
97e00a50c1
1 changed files with 2 additions and 0 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -88390,6 +88390,7 @@ function cacheWindowsDir(extPath, tool, version, arch) {
|
||||||
if (!cacheDirectoryPaths) {
|
if (!cacheDirectoryPaths) {
|
||||||
throw new Error(`Could not get cache folder paths.`);
|
throw new Error(`Could not get cache folder paths.`);
|
||||||
}
|
}
|
||||||
|
core.info(`Found Cache Directory Paths: ${cacheDirectoryPaths}`);
|
||||||
// replace cache directory path with actual cache directory path
|
// replace cache directory path with actual cache directory path
|
||||||
const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => {
|
const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => {
|
||||||
return {
|
return {
|
||||||
|
@ -88400,6 +88401,7 @@ function cacheWindowsDir(extPath, tool, version, arch) {
|
||||||
// iterate through actual cache directory paths and make links
|
// iterate through actual cache directory paths and make links
|
||||||
for (const cachePath of actualCacheDirectoryPaths) {
|
for (const cachePath of actualCacheDirectoryPaths) {
|
||||||
if (!fs_1.default.existsSync(cachePath.actualPath)) {
|
if (!fs_1.default.existsSync(cachePath.actualPath)) {
|
||||||
|
core.info(`Creating directory ${cachePath.actualPath}`);
|
||||||
fs_1.default.mkdirSync(path.dirname(cachePath.actualPath), { recursive: true });
|
fs_1.default.mkdirSync(path.dirname(cachePath.actualPath), { recursive: true });
|
||||||
}
|
}
|
||||||
fs_1.default.symlinkSync(cachePath.actualPath, cachePath.defaultPath, 'junction');
|
fs_1.default.symlinkSync(cachePath.actualPath, cachePath.defaultPath, 'junction');
|
||||||
|
|
Loading…
Reference in a new issue