Skip to content

Commit 108f7a3

Browse files
authored
[CI] Grab 'dotnet-install.sh' script directly from GitHub. (#9699)
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.
1 parent ef9912a commit 108f7a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-tools/xaprepare/xaprepare/ConfigAndData/Configurables.Unix.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ partial class Defaults
1515

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

0 commit comments

Comments
 (0)