From d82d76d893a83544c7eddfa716de7df749db057c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Tue, 19 Sep 2023 08:45:43 +0200 Subject: [PATCH] Clean up Go install from previous runs Seems like there is some bug in the setup-go action. --- .github/workflows/qa-azure.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/qa-azure.yaml b/.github/workflows/qa-azure.yaml index 789e47834..27e8b1688 100644 --- a/.github/workflows/qa-azure.yaml +++ b/.github/workflows/qa-azure.yaml @@ -46,6 +46,15 @@ jobs: uses: Ubuntu/WSL/.github/actions/wsl-install@main with: distro: "Ubuntu-Preview" + - name: Clean up Go + shell: powershell + # For some reason, this file interferes with setup-go + run: | + $p = 'C:\actions-runner\_work\_tool\go' + if ( Test-Path -Path "${p}" ) { + Write-Output "Removing old Go install" + Remove-Item -Recurse -Path "${p}" + } - name: Set up Go uses: actions/setup-go@v4 with: