install-cloudflare-go.ps1 468 B

1234567891011121314151617
  1. Set-StrictMode -Version Latest
  2. $ErrorActionPreference = "Stop"
  3. $ProgressPreference = "SilentlyContinue"
  4. Write-Output "Downloading cloudflare go..."
  5. Set-Location "$Env:Temp"
  6. git clone -q https://github.com/cloudflare/go
  7. Write-Output "Building go..."
  8. cd go/src
  9. # https://github.com/cloudflare/go/tree/f4334cdc0c3f22a3bfdd7e66f387e3ffc65a5c38 is version go1.22.5-devel-cf
  10. git checkout -q f4334cdc0c3f22a3bfdd7e66f387e3ffc65a5c38
  11. & ./make.bat
  12. Write-Output "Installed"