From 48ac8fd236c79c21571daf4d4cbab6e189121007 Mon Sep 17 00:00:00 2001 From: galargh Date: Sat, 12 Aug 2023 23:57:09 +0200 Subject: [PATCH] chore: format --- .github/workflows/windows-validation.yml | 7 ++----- src/installer.ts | 10 ++++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/windows-validation.yml b/.github/workflows/windows-validation.yml index 9ffe529..cba2c8c 100644 --- a/.github/workflows/windows-validation.yml +++ b/.github/workflows/windows-validation.yml @@ -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: @@ -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 }} - - - diff --git a/src/installer.ts b/src/installer.ts index 3748ab5..d8ac3a1 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -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: