Skip to content

Commit

Permalink
[build] try different URL for dotnet-install script
Browse files Browse the repository at this point in the history
We are getting the error pretty early on during the build:

    Downloading dotnet-install script...
    Warning: Failed to obtain dotnet-install script size from URL 'https://dot.net/v1/dotnet-install.sh'. HTTP status code: InternalServerError (500)
      -> https://dot.net/v1/dotnet-install.sh
        downloading dotnet-install.sh

Trying a URL that will require less redirects.
  • Loading branch information
jonathanpeppers committed Jun 24, 2024
1 parent ddb215b commit 23db6f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-tools/automation/yaml-templates/use-dot-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ steps:
- bash: >
DOTNET_ROOT=~/.dotnet/ &&
(if [[ "${{ parameters.remove_dotnet }}" == "true" ]] ; then rm -rfv $DOTNET_ROOT; fi) &&
curl -L https://dot.net/v1/dotnet-install.sh --retry 5 --retry-max-time 300 > dotnet-install.sh &&
curl -L https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh --retry 5 --retry-max-time 300 > dotnet-install.sh &&
chmod +x dotnet-install.sh &&
./dotnet-install.sh --channel ${{ parameters.version }} --quality ${{ parameters.quality }} --install-dir $DOTNET_ROOT --skip-non-versioned-files --verbose &&
PATH="$DOTNET_ROOT:$PATH" &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ partial class Defaults

partial class Urls
{
public static readonly Uri DotNetInstallScript = new Uri ("https://dot.net/v1/dotnet-install.sh");
public static readonly Uri DotNetInstallScript = new Uri ("https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ partial class Paths

partial class Urls
{
public static readonly Uri DotNetInstallScript = new Uri ("https://dot.net/v1/dotnet-install.ps1");
public static readonly Uri DotNetInstallScript = new Uri ("https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1");
}
}
}

0 comments on commit 23db6f5

Please sign in to comment.