You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install-dotnet.ps1 failed to extract TAR archive of .NET 11 SDK RC3 #750
When using install-dotnet.ps1 script on GitHub Actions windows-latest image.
It failed to installing .NET 11 SDK RC3 with following error.
> ./dotnet-install.ps1 -Channel 11.0 -InstallDir .dotnet -Verbose
dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Sdk/11.0.100-rc.3.26522.148/dotnet-sdk-11.0.100-rc.3.26522.148-win-x64.tar.gz size is 257040008 bytes.
dotnet-install: Downloaded file https://builds.dotnet.microsoft.com/dotnet/Sdk/11.0.100-rc.3.26522.148/dotnet-sdk-11.0.100-rc.3.26522.148-win-x64.tar.gz size is 257040008 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet-install: Extracting the archive.
tar.exe : tar (child): Cannot connect to C: resolve failed
It's occurred because install-dotnet.ps1 download tar file when installing .NET SDK 11 RC3.
And GNU version of tar.exe is used when running on GitHub Action's windows image.
Currently it can avoid issue by modifying PATH environment orders.
$env:PATH = "$env:SystemRoot\System32;$env:PATH"
or enforce to use ZIP archive by setting following environment variable.
$env:DOTNET_INSTALL_SKIP_TAR = "1"
Though it's preffered to avoid issue on install-dotnet.ps1 side.
By explicitly using Windows native version of tar.exe.
Related Issue: https://github.com/openai/codex/issues/46738
Activity