From cdacbb403c0d7e36e49050664a23ac59f40ea3e6 Mon Sep 17 00:00:00 2001 From: Tom Proctor Date: Wed, 26 Nov 2025 13:17:43 +0000 Subject: [PATCH] more debug Change-Id: Ifc4f06441c54114f7fe2ebaae313791becc245a0 Signed-off-by: Tom Proctor --- .github/workflows/win.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index e75bdc0c5..c7afddbf3 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -24,7 +24,7 @@ jobs: path: src - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: - key: ${{ matrix.key }}-dev-drive-${{ hashFiles('src/go.mod', 'src/go.sum') }}" + key: ${{ matrix.key }}-dev-drive-${{ hashFiles('src/go.mod', 'src/go.sum') }} path: C:\\dev_disk.vhdx - uses: samypr100/setup-dev-drive@30f0f98ae5636b2b6501e181dfb3631b9974818d # v4.0.0 with: @@ -36,8 +36,16 @@ jobs: - name: Check restored cache shell: pwsh run: | - Get-ChildItem -Recurse ${{ env.DEV_DRIVE }}/gocache - Get-ChildItem -Recurse ${{ env.DEV_DRIVE }}/gomodcache + if (Test-Path "${{ env.DEV_DRIVE }}/gocache") { + Get-ChildItem -Recurse ${{ env.DEV_DRIVE }}/gocache + } else { + Write-Host "gocache directory does not exist yet" + } + if (Test-Path "${{ env.DEV_DRIVE }}/gomodcache") { + Get-ChildItem -Recurse ${{ env.DEV_DRIVE }}/gomodcache + } else { + Write-Host "gomodcache directory does not exist yet" + } - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0