Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Aug 12, 2023
1 parent 89a192a commit 48ac8fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/windows-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
shell: bash

hostedtoolcache:
name: 'Validate if hostedtoolcache works as expected'
name: 'Validate if hostedtoolcache works as expected'
runs-on: windows-latest
strategy:
matrix:
Expand All @@ -128,12 +128,9 @@ jobs:
with:
go-version: ${{ matrix.go }}
cache: ${{ matrix.cache }}

- name: 'Setup ${{ matrix.go }}, cache: ${{ matrix.cache }} (from hostedtoolcache)'
uses: ./
with:
go-version: ${{ matrix.go }}
cache: ${{ matrix.cache }}



10 changes: 8 additions & 2 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,14 @@ async function cacheWindowsDir(

const actualToolCacheCompleteFile = `${actualToolCacheDir}.complete`;
const defaultToolCacheCompleteFile = `${defaultToolCacheDir}.complete`;
fs.symlinkSync(actualToolCacheCompleteFile, defaultToolCacheCompleteFile, 'file');
core.info(`Created link ${defaultToolCacheCompleteFile} => ${actualToolCacheCompleteFile}`);
fs.symlinkSync(
actualToolCacheCompleteFile,
defaultToolCacheCompleteFile,
'file'
);
core.info(
`Created link ${defaultToolCacheCompleteFile} => ${actualToolCacheCompleteFile}`
);

// make outer code to continue using toolcache as if it were installed on c:
// restore toolcache root to default drive c:
Expand Down

0 comments on commit 48ac8fd

Please sign in to comment.