diff options
| author | Tom Proctor <tomhjp@users.noreply.github.com> | 2026-04-07 12:34:16 +0100 |
|---|---|---|
| committer | Tom Proctor <tomhjp@users.noreply.github.com> | 2026-04-07 12:42:37 +0100 |
| commit | 21072234dc7b3a7296e747c65eddbdbcb4e62321 (patch) | |
| tree | cf05e053aaf84b7db0191e6bb1f31b321c8b45dd /tool/go.cmd | |
| parent | 6e44c6828b501724b72a1bb31e51677b9e9f740b (diff) | |
| download | tailscale-tomhjp/test-git-bash-tool-go.tar.xz tailscale-tomhjp/test-git-bash-tool-go.zip | |
Change-Id: I7656ae83492d82628a98b1d43908ea6a53b62a24
Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
Diffstat (limited to 'tool/go.cmd')
| -rw-r--r-- | tool/go.cmd | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tool/go.cmd b/tool/go.cmd deleted file mode 100644 index b7b5d0483..000000000 --- a/tool/go.cmd +++ /dev/null @@ -1,36 +0,0 @@ -@echo off -rem Checking for PowerShell Core using PowerShell for Windows... -powershell -NoProfile -NonInteractive -Command "& {Get-Command -Name pwsh -ErrorAction Stop}" > NUL -if ERRORLEVEL 1 ( - rem Ask the user whether they should install the dependencies. Note that this - rem code path never runs in CI because pwsh is always explicitly installed. - - rem Time out after 5 minutes, defaulting to 'N' - choice /c yn /t 300 /d n /m "PowerShell Core is required. Install now" - if ERRORLEVEL 2 ( - echo Aborting due to unmet dependencies. - exit /b 1 - ) - - rem Check for a .NET Core runtime using PowerShell for Windows... - powershell -NoProfile -NonInteractive -Command "& {if (-not (dotnet --list-runtimes | Select-String 'Microsoft\.NETCore\.App' -Quiet)) {exit 1}}" > NUL - rem Install .NET Core if missing to provide PowerShell Core's runtime library. - if ERRORLEVEL 1 ( - rem Time out after 5 minutes, defaulting to 'N' - choice /c yn /t 300 /d n /m "PowerShell Core requires .NET Core for its runtime library. Install now" - if ERRORLEVEL 2 ( - echo Aborting due to unmet dependencies. - exit /b 1 - ) - - winget install --accept-package-agreements --id Microsoft.DotNet.Runtime.8 -e --source winget - ) - - rem Now install PowerShell Core. - winget install --accept-package-agreements --id Microsoft.PowerShell -e --source winget - if ERRORLEVEL 0 echo Please re-run this script within a new console session to pick up PATH changes. - rem Either way we didn't build, so return 1. - exit /b 1 -) - -pwsh -NoProfile -ExecutionPolicy Bypass "%~dp0..\tool\gocross\gocross-wrapper.ps1" %* |
