Repository navigation
[release/3.1] Fix fetch-microsoft-sdk script - #1925
Conversation
The script internally uses dotnet-install. The output of dotnet-install has changed: it now prints multiple urls and only one of them is the one we want. > dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where: > dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. > dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs. > dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer. > > dotnet-install: Payload URLs: > dotnet-install: Primary named payload URL: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.110/dotnet-sdk-3.1.110-linux-x64.tar.gz > dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "3.1.110" --install-dir "$HOME/.dotnet" --architecture "x64 " Fix the grep expression to pick up the payload URL.
|
macOS is expected to fail (#1819), although earlier than it did in this PR. Maybe the pool got fixed? Anyway, good to merge. |
|
@omajid was the error you saw something like this? We just saw it in a branch build, and wondering if we just need to merge this change into it. 🙂 |
|
The error log looked like this on Fedora: And this on RHEL: The error message here looks close enough that this PR should fix it. That said, I have seen dotnet-install fail recently just downloading an SDK all by itself. |
|
Interesting... yeah, seems similar enough. (We're adding another I faintly remember seeing issues reported with dotnet-install recently, network issues. Not sure what's going on there. |
The script internally uses dotnet-install. The output of dotnet-install has changed: it now prints multiple urls and only one of them is the one we want.
Fix the grep expression to pick up the payload URL.