mirror of
https://github.com/actions/setup-go
synced 2024-12-22 06:12:42 +00:00
chore: format
This commit is contained in:
parent
89a192af9d
commit
48ac8fd236
2 changed files with 10 additions and 7 deletions
7
.github/workflows/windows-validation.yml
vendored
7
.github/workflows/windows-validation.yml
vendored
|
@ -114,7 +114,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
hostedtoolcache:
|
hostedtoolcache:
|
||||||
name: 'Validate if hostedtoolcache works as expected'
|
name: 'Validate if hostedtoolcache works as expected'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -128,12 +128,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
cache: ${{ matrix.cache }}
|
cache: ${{ matrix.cache }}
|
||||||
|
|
||||||
- name: 'Setup ${{ matrix.go }}, cache: ${{ matrix.cache }} (from hostedtoolcache)'
|
- name: 'Setup ${{ matrix.go }}, cache: ${{ matrix.cache }} (from hostedtoolcache)'
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
cache: ${{ matrix.cache }}
|
cache: ${{ matrix.cache }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -205,8 +205,14 @@ async function cacheWindowsDir(
|
||||||
|
|
||||||
const actualToolCacheCompleteFile = `${actualToolCacheDir}.complete`;
|
const actualToolCacheCompleteFile = `${actualToolCacheDir}.complete`;
|
||||||
const defaultToolCacheCompleteFile = `${defaultToolCacheDir}.complete`;
|
const defaultToolCacheCompleteFile = `${defaultToolCacheDir}.complete`;
|
||||||
fs.symlinkSync(actualToolCacheCompleteFile, defaultToolCacheCompleteFile, 'file');
|
fs.symlinkSync(
|
||||||
core.info(`Created link ${defaultToolCacheCompleteFile} => ${actualToolCacheCompleteFile}`);
|
actualToolCacheCompleteFile,
|
||||||
|
defaultToolCacheCompleteFile,
|
||||||
|
'file'
|
||||||
|
);
|
||||||
|
core.info(
|
||||||
|
`Created link ${defaultToolCacheCompleteFile} => ${actualToolCacheCompleteFile}`
|
||||||
|
);
|
||||||
|
|
||||||
// make outer code to continue using toolcache as if it were installed on c:
|
// make outer code to continue using toolcache as if it were installed on c:
|
||||||
// restore toolcache root to default drive c:
|
// restore toolcache root to default drive c:
|
||||||
|
|
Loading…
Reference in a new issue