Skip to content

Commit

Permalink
Try a different gopath for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jie Chen committed Dec 12, 2024
1 parent fdef9f1 commit aab4af7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ runs:
- name: Clean up existing Go installation
shell: pwsh
run: |
$goPath = "${{ runner.tool_cache }}/go/${{ inputs.go-version }}/x64"
Write-Host "Debug: Checking if path exists: $goPath"
if (Test-Path $goPath) {
Write-Host "Debug: Path exists. Removing $goPath"
Remove-Item -Recurse -Force $goPath
# $goPath = "${{ runner.tool_cache }}/go/${{ inputs.go-version }}/x64"
$goPath = Get-Command -ErrorAction 'SilentlyContinue' -Type 'Application' 'go' | Select-Object -ExpandProperty 'Source'
Write-Host "Debug: Checking if path exists: '$goPath'"
if (Test-Path "$goPath") {
Write-Host "Debug: Path exists. Removing '$goPath'"
Remove-Item -Recurse -Force "$goPath"
Write-Host "Debug: Path removed."
} else {
Write-Host "Debug: Path does not exist. No action needed."
Expand Down

0 comments on commit aab4af7

Please sign in to comment.