Skip to content

Commit a3a2c7e

Browse files
authored
CSHARP-5538: Fix dotnet installation script on Mac and Linux (#1645)
1 parent 22f07c5 commit a3a2c7e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ "$DOTNET_VERSION" != "$DOTNET_INSTALLED_VERSION" ]; then
3232
if [ ! -d "$SCRIPT_DIR/.dotnet" ]; then
3333
mkdir "$SCRIPT_DIR/.dotnet"
3434
fi
35-
curl -Lsfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh
35+
curl -Lfo "$SCRIPT_DIR/.dotnet/dotnet-install.sh" https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh
3636
# N.B. We explicitly install .NET Core 2.1 and 3.1 because .NET 6.0 SDK can build those TFMs
3737
# but will silently upgrade to a more recent runtime to execute tests if the desired runtime
3838
# isn't available. For example, `dotnet run --framework netcoreapp3.0` will silently run

Diff for: evergreen/install-dotnet.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ DOTNET_SDK_VERSION="${DOTNET_SDK_VERSION:-8.0}"
66

77
if [[ $OS =~ [Ww]indows.* ]]; then
88
echo "Downloading Windows .NET SDK installer into $DOTNET_SDK_PATH folder..."
9-
curl -Lfo ./dotnet-install.ps1 https://dot.net/v1/dotnet-install.ps1
9+
curl -Lfo ./dotnet-install.ps1 https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1
1010
echo "Installing .NET 8.0 SDK..."
1111
powershell.exe ./dotnet-install.ps1 -Channel "$DOTNET_SDK_VERSION" -InstallDir "$DOTNET_SDK_PATH" -NoPath
1212
else
1313
echo "Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..."
14-
curl -Lfo ./dotnet-install.sh https://dot.net/v1/dotnet-install.sh
14+
curl -Lfo ./dotnet-install.sh https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh
1515
echo "Installing .NET 8.0 SDK..."
1616
bash ./dotnet-install.sh --channel "$DOTNET_SDK_VERSION" --install-dir "$DOTNET_SDK_PATH" --no-path
1717
fi

Diff for: evergreen/run-mongodb-oidc-env-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -o errexit # Exit the script with error if any of the commands fail
66
DOTNET_SDK_PATH="$(pwd)/.dotnet"
77

88
echo "Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..."
9-
curl -Lfo ./dotnet-install.sh https://dot.net/v1/dotnet-install.sh
9+
curl -Lfo ./dotnet-install.sh https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh
1010
echo "Installing .NET 6.0 SDK..."
1111
bash ./dotnet-install.sh --channel 6.0 --install-dir "$DOTNET_SDK_PATH" --no-path
1212
export PATH=$DOTNET_SDK_PATH:$PATH

0 commit comments

Comments
 (0)