Skip to content

Commit

Permalink
[CI] Grab 'dotnet-install.sh' script directly from GitHub. (#9699)
Browse files Browse the repository at this point in the history
Our CI builds are frequently failing to download the
`dotnet-install.sh` script from the official .NET website due to an
`AuthenticationException`.

Instead, grab the `dotnet-install.sh` script directly from GitHub to
avoid the issue.
  • Loading branch information
jpobst authored Jan 22, 2025
1 parent ef9912a commit 108f7a3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ partial class Defaults

partial class Urls
{
public static readonly Uri DotNetInstallScript = new Uri ("https://dot.net/v1/dotnet-install.sh");
// This is the "public" url that we really should be using, but it keeps failing with:
// AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown
// For now we'll grab it directly from GitHub
// public static readonly Uri DotNetInstallScript = new Uri ("https://dot.net/v1/dotnet-install.sh");
public static readonly Uri DotNetInstallScript = new Uri ("https://raw.githubusercontent.com/dotnet/install-scripts/refs/heads/main/src/dotnet-install.sh");
}
}
}

0 comments on commit 108f7a3

Please sign in to comment.