Skip to content

Commit 531f299

Browse files
authored
remove nocdn concept, remove azureedge links (#564)
1 parent b453cf2 commit 531f299

13 files changed

+23
-91
lines changed

src/dotnet-install.ps1

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@
7575
Default: https://builds.dotnet.microsoft.com/dotnet
7676
For internal use only.
7777
Allows using a different storage to download SDK archives from.
78-
This parameter is only used if $NoCdn is false.
7978
.PARAMETER UncachedFeed
8079
For internal use only.
8180
Allows using a different storage to download SDK archives from.
82-
This parameter is only used if $NoCdn is true.
8381
.PARAMETER ProxyAddress
8482
If set, the installer will use the proxy when making web requests
8583
.PARAMETER ProxyUseDefaultCredentials
@@ -90,8 +88,6 @@
9088
.PARAMETER SkipNonVersionedFiles
9189
Default: false
9290
Skips installing non-versioned files if they already exist, such as dotnet.exe.
93-
.PARAMETER NoCdn
94-
Disable downloading from the Azure CDN, and use the uncached feed directly.
9591
.PARAMETER JSonFile
9692
Determines the SDK version from a user specified global.json file
9793
Note: global.json must have a value for 'SDK:Version'
@@ -130,7 +126,6 @@ param(
130126
[switch]$ProxyUseDefaultCredentials,
131127
[string[]]$ProxyBypassList = @(),
132128
[switch]$SkipNonVersionedFiles,
133-
[switch]$NoCdn,
134129
[int]$DownloadTimeout = 1200,
135130
[switch]$KeepZip,
136131
[string]$ZipPath = [System.IO.Path]::combine([System.IO.Path]::GetTempPath(), [System.IO.Path]::GetRandomFileName()),
@@ -1137,24 +1132,15 @@ function Get-AkaMsLink-And-Version([string] $NormalizedChannel, [string] $Normal
11371132
function Get-Feeds-To-Use() {
11381133
$feeds = @(
11391134
"https://builds.dotnet.microsoft.com/dotnet"
1140-
"https://dotnetcli.azureedge.net/dotnet"
11411135
"https://ci.dot.net/public"
1142-
"https://dotnetbuilds.azureedge.net/public"
11431136
)
11441137

11451138
if (-not [string]::IsNullOrEmpty($AzureFeed)) {
11461139
$feeds = @($AzureFeed)
11471140
}
11481141

1149-
if ($NoCdn) {
1150-
$feeds = @(
1151-
"https://dotnetcli.blob.core.windows.net/dotnet",
1152-
"https://dotnetbuilds.blob.core.windows.net/public"
1153-
)
1154-
1155-
if (-not [string]::IsNullOrEmpty($UncachedFeed)) {
1142+
if (-not [string]::IsNullOrEmpty($UncachedFeed)) {
11561143
$feeds = @($UncachedFeed)
1157-
}
11581144
}
11591145

11601146
Write-Verbose "Initialized feeds: $feeds"

src/dotnet-install.sh

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,24 +1396,15 @@ get_feeds_to_use()
13961396
{
13971397
feeds=(
13981398
"https://builds.dotnet.microsoft.com/dotnet"
1399-
"https://dotnetcli.azureedge.net/dotnet"
14001399
"https://ci.dot.net/public"
1401-
"https://dotnetbuilds.azureedge.net/public"
14021400
)
14031401

14041402
if [[ -n "$azure_feed" ]]; then
14051403
feeds=("$azure_feed")
14061404
fi
14071405

1408-
if [[ "$no_cdn" == "true" ]]; then
1409-
feeds=(
1410-
"https://dotnetcli.blob.core.windows.net/dotnet"
1411-
"https://dotnetbuilds.blob.core.windows.net/public"
1412-
)
1413-
1414-
if [[ -n "$uncached_feed" ]]; then
1415-
feeds=("$uncached_feed")
1416-
fi
1406+
if [[ -n "$uncached_feed" ]]; then
1407+
feeds=("$uncached_feed")
14171408
fi
14181409
}
14191410

@@ -1709,7 +1700,6 @@ install_dir="<auto>"
17091700
architecture="<auto>"
17101701
dry_run=false
17111702
no_path=false
1712-
no_cdn=false
17131703
azure_feed=""
17141704
uncached_feed=""
17151705
feed_credential=""
@@ -1782,10 +1772,6 @@ do
17821772
verbose=true
17831773
non_dynamic_parameters+=" $name"
17841774
;;
1785-
--no-cdn|-[Nn]o[Cc]dn)
1786-
no_cdn=true
1787-
non_dynamic_parameters+=" $name"
1788-
;;
17891775
--azure-feed|-[Aa]zure[Ff]eed)
17901776
shift
17911777
azure_feed="$1"
@@ -1890,13 +1876,10 @@ do
18901876
echo " --verbose,-Verbose Display diagnostics information."
18911877
echo " --azure-feed,-AzureFeed For internal use only."
18921878
echo " Allows using a different storage to download SDK archives from."
1893-
echo " This parameter is only used if --no-cdn is false."
18941879
echo " --uncached-feed,-UncachedFeed For internal use only."
18951880
echo " Allows using a different storage to download SDK archives from."
1896-
echo " This parameter is only used if --no-cdn is true."
18971881
echo " --skip-non-versioned-files Skips non-versioned files if they already exist, such as the dotnet executable."
18981882
echo " -SkipNonVersionedFiles"
1899-
echo " --no-cdn,-NoCdn Disable downloading from the Azure CDN, and use the uncached feed directly."
19001883
echo " --jsonfile <JSONFILE> Determines the SDK version from a user specified global.json file."
19011884
echo " Note: global.json must have a value for 'SDK:Version'"
19021885
echo " --keep-zip,-KeepZip If set, downloaded file is kept."

tests/Install-Scripts.Test/Assets/GivenThatIWantToGetTheSdkLinksFromAScript.WhenAnExactVersionIsPassedToBash_version=1.0.5_runtime=dotnet.verified.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
dotnet-install: Payload URLs:
33
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/Runtime/1.0.5/dotnet-runtime-1.0.5-osx-x64.tar.gz
44
dotnet-install: URL #1 - legacy: https://builds.dotnet.microsoft.com/dotnet/Runtime/1.0.5/dotnet-osx-x64.1.0.5.tar.gz
5-
dotnet-install: URL #2 - primary: https://dotnetcli.azureedge.net/dotnet/Runtime/1.0.5/dotnet-runtime-1.0.5-osx-x64.tar.gz
6-
dotnet-install: URL #3 - legacy: https://dotnetcli.azureedge.net/dotnet/Runtime/1.0.5/dotnet-osx-x64.1.0.5.tar.gz
7-
dotnet-install: URL #4 - primary: https://ci.dot.net/public/Runtime/1.0.5/dotnet-runtime-1.0.5-osx-x64.tar.gz
8-
dotnet-install: URL #5 - legacy: https://ci.dot.net/public/Runtime/1.0.5/dotnet-osx-x64.1.0.5.tar.gz
9-
dotnet-install: URL #6 - primary: https://dotnetbuilds.azureedge.net/public/Runtime/1.0.5/dotnet-runtime-1.0.5-osx-x64.tar.gz
10-
dotnet-install: URL #7 - legacy: https://dotnetbuilds.azureedge.net/public/Runtime/1.0.5/dotnet-osx-x64.1.0.5.tar.gz
5+
dotnet-install: URL #2 - primary: https://ci.dot.net/public/Runtime/1.0.5/dotnet-runtime-1.0.5-osx-x64.tar.gz
6+
dotnet-install: URL #3 - legacy: https://ci.dot.net/public/Runtime/1.0.5/dotnet-osx-x64.1.0.5.tar.gz
117
dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "1.0.5" --install-dir "dotnet-sdk" --architecture "x64" --os "osx" --runtime "dotnet" -runtimeid "osx"
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
dotnet_install: Warning: Use of --runtime-id is obsolete and should be limited to the versions below 2.1. To override architecture, use --architecture option instead. To override OS, use --os option instead.
22
dotnet-install: Payload URLs:
33
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-osx-x64.tar.gz
4-
dotnet-install: URL #1 - primary: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-osx-x64.tar.gz
5-
dotnet-install: URL #2 - primary: https://ci.dot.net/public/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-osx-x64.tar.gz
6-
dotnet-install: URL #3 - primary: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-osx-x64.tar.gz
4+
dotnet-install: URL #1 - primary: https://ci.dot.net/public/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-osx-x64.tar.gz
75
dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "2.1.0" --install-dir "dotnet-sdk" --architecture "x64" --os "osx" --runtime "aspnetcore" -runtimeid "osx"

tests/Install-Scripts.Test/Assets/GivenThatIWantToGetTheSdkLinksFromAScript.WhenAnExactVersionIsPassedToBash_version=6.0.100_runtime=null.verified.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
dotnet-install: Payload URLs:
33
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-osx-x64.tar.gz
44
dotnet-install: URL #1 - legacy: https://builds.dotnet.microsoft.com/dotnet/Sdk/6.0.100/dotnet-dev-osx-x64.6.0.100.tar.gz
5-
dotnet-install: URL #2 - primary: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-osx-x64.tar.gz
6-
dotnet-install: URL #3 - legacy: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-dev-osx-x64.6.0.100.tar.gz
7-
dotnet-install: URL #4 - primary: https://ci.dot.net/public/Sdk/6.0.100/dotnet-sdk-6.0.100-osx-x64.tar.gz
8-
dotnet-install: URL #5 - legacy: https://ci.dot.net/public/Sdk/6.0.100/dotnet-dev-osx-x64.6.0.100.tar.gz
9-
dotnet-install: URL #6 - primary: https://dotnetbuilds.azureedge.net/public/Sdk/6.0.100/dotnet-sdk-6.0.100-osx-x64.tar.gz
10-
dotnet-install: URL #7 - legacy: https://dotnetbuilds.azureedge.net/public/Sdk/6.0.100/dotnet-dev-osx-x64.6.0.100.tar.gz
5+
dotnet-install: URL #2 - primary: https://ci.dot.net/public/Sdk/6.0.100/dotnet-sdk-6.0.100-osx-x64.tar.gz
6+
dotnet-install: URL #3 - legacy: https://ci.dot.net/public/Sdk/6.0.100/dotnet-dev-osx-x64.6.0.100.tar.gz
117
dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "6.0.100" --install-dir "dotnet-sdk" --architecture "x64" --os "osx" -runtimeid "osx"

tests/Install-Scripts.Test/Assets/GivenThatIWantToGetTheSdkLinksFromAScript.WhenAnExactVersionIsPassedToBash_version=8.0.303_runtime=null.verified.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
dotnet-install: Payload URLs:
33
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.303/dotnet-sdk-8.0.303-osx-x64.tar.gz
44
dotnet-install: URL #1 - legacy: https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.303/dotnet-dev-osx-x64.8.0.303.tar.gz
5-
dotnet-install: URL #2 - primary: https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.303/dotnet-sdk-8.0.303-osx-x64.tar.gz
6-
dotnet-install: URL #3 - legacy: https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.303/dotnet-dev-osx-x64.8.0.303.tar.gz
7-
dotnet-install: URL #4 - primary: https://ci.dot.net/public/Sdk/8.0.303/dotnet-sdk-8.0.303-osx-x64.tar.gz
8-
dotnet-install: URL #5 - legacy: https://ci.dot.net/public/Sdk/8.0.303/dotnet-dev-osx-x64.8.0.303.tar.gz
9-
dotnet-install: URL #6 - primary: https://dotnetbuilds.azureedge.net/public/Sdk/8.0.303/dotnet-sdk-8.0.303-osx-x64.tar.gz
10-
dotnet-install: URL #7 - legacy: https://dotnetbuilds.azureedge.net/public/Sdk/8.0.303/dotnet-dev-osx-x64.8.0.303.tar.gz
5+
dotnet-install: URL #2 - primary: https://ci.dot.net/public/Sdk/8.0.303/dotnet-sdk-8.0.303-osx-x64.tar.gz
6+
dotnet-install: URL #3 - legacy: https://ci.dot.net/public/Sdk/8.0.303/dotnet-dev-osx-x64.8.0.303.tar.gz
117
dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "8.0.303" --install-dir "dotnet-sdk" --architecture "x64" --os "osx" -runtimeid "osx"

tests/Install-Scripts.Test/Assets/GivenThatIWantToGetTheSdkLinksFromAScript.WhenAnExactVersionIsPassedToBash_version=9.0.100_runtime=null.verified.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
dotnet-install: Payload URLs:
33
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.100/dotnet-sdk-9.0.100-osx-x64.tar.gz
44
dotnet-install: URL #1 - legacy: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.100/dotnet-dev-osx-x64.9.0.100.tar.gz
5-
dotnet-install: URL #2 - primary: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100/dotnet-sdk-9.0.100-osx-x64.tar.gz
6-
dotnet-install: URL #3 - legacy: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100/dotnet-dev-osx-x64.9.0.100.tar.gz
7-
dotnet-install: URL #4 - primary: https://ci.dot.net/public/Sdk/9.0.100/dotnet-sdk-9.0.100-osx-x64.tar.gz
8-
dotnet-install: URL #5 - legacy: https://ci.dot.net/public/Sdk/9.0.100/dotnet-dev-osx-x64.9.0.100.tar.gz
9-
dotnet-install: URL #6 - primary: https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100/dotnet-sdk-9.0.100-osx-x64.tar.gz
10-
dotnet-install: URL #7 - legacy: https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100/dotnet-dev-osx-x64.9.0.100.tar.gz
5+
dotnet-install: URL #2 - primary: https://ci.dot.net/public/Sdk/9.0.100/dotnet-sdk-9.0.100-osx-x64.tar.gz
6+
dotnet-install: URL #3 - legacy: https://ci.dot.net/public/Sdk/9.0.100/dotnet-dev-osx-x64.9.0.100.tar.gz
117
dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "9.0.100" --install-dir "dotnet-sdk" --architecture "x64" --os "osx" -runtimeid "osx"
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
dotnet-install: Payload URLs:
22
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/Runtime/1.0.5/dotnet-runtime-1.0.5-win-x64.zip
33
dotnet-install: URL #1 - legacy: https://builds.dotnet.microsoft.com/dotnet/Runtime/1.0.5/dotnet-win-x64.1.0.5.zip
4-
dotnet-install: URL #2 - primary: https://dotnetcli.azureedge.net/dotnet/Runtime/1.0.5/dotnet-runtime-1.0.5-win-x64.zip
5-
dotnet-install: URL #3 - legacy: https://dotnetcli.azureedge.net/dotnet/Runtime/1.0.5/dotnet-win-x64.1.0.5.zip
6-
dotnet-install: URL #4 - primary: https://ci.dot.net/public/Runtime/1.0.5/dotnet-runtime-1.0.5-win-x64.zip
7-
dotnet-install: URL #5 - legacy: https://ci.dot.net/public/Runtime/1.0.5/dotnet-win-x64.1.0.5.zip
8-
dotnet-install: URL #6 - primary: https://dotnetbuilds.azureedge.net/public/Runtime/1.0.5/dotnet-runtime-1.0.5-win-x64.zip
9-
dotnet-install: URL #7 - legacy: https://dotnetbuilds.azureedge.net/public/Runtime/1.0.5/dotnet-win-x64.1.0.5.zip
4+
dotnet-install: URL #2 - primary: https://ci.dot.net/public/Runtime/1.0.5/dotnet-runtime-1.0.5-win-x64.zip
5+
dotnet-install: URL #3 - legacy: https://ci.dot.net/public/Runtime/1.0.5/dotnet-win-x64.1.0.5.zip
106
dotnet-install: Repeatable invocation: .\dotnet-install.ps1 -Version "1.0.5" -InstallDir "dotnet-sdk" -Architecture "x64" -Runtime "dotnet"
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
dotnet-install: Payload URLs:
22
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-win-x64.zip
3-
dotnet-install: URL #1 - primary: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-win-x64.zip
4-
dotnet-install: URL #2 - primary: https://ci.dot.net/public/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-win-x64.zip
5-
dotnet-install: URL #3 - primary: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-win-x64.zip
3+
dotnet-install: URL #1 - primary: https://ci.dot.net/public/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-win-x64.zip
64
dotnet-install: Repeatable invocation: .\dotnet-install.ps1 -Version "2.1.0" -InstallDir "dotnet-sdk" -Architecture "x64" -Runtime "aspnetcore"
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
dotnet-install: Payload URLs:
22
dotnet-install: URL #0 - primary: https://builds.dotnet.microsoft.com/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip
33
dotnet-install: URL #1 - legacy: https://builds.dotnet.microsoft.com/dotnet/Sdk/6.0.100/dotnet-dev-win-x64.6.0.100.zip
4-
dotnet-install: URL #2 - primary: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip
5-
dotnet-install: URL #3 - legacy: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-dev-win-x64.6.0.100.zip
6-
dotnet-install: URL #4 - primary: https://ci.dot.net/public/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip
7-
dotnet-install: URL #5 - legacy: https://ci.dot.net/public/Sdk/6.0.100/dotnet-dev-win-x64.6.0.100.zip
8-
dotnet-install: URL #6 - primary: https://dotnetbuilds.azureedge.net/public/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip
9-
dotnet-install: URL #7 - legacy: https://dotnetbuilds.azureedge.net/public/Sdk/6.0.100/dotnet-dev-win-x64.6.0.100.zip
4+
dotnet-install: URL #2 - primary: https://ci.dot.net/public/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip
5+
dotnet-install: URL #3 - legacy: https://ci.dot.net/public/Sdk/6.0.100/dotnet-dev-win-x64.6.0.100.zip
106
dotnet-install: Repeatable invocation: .\dotnet-install.ps1 -Version "6.0.100" -InstallDir "dotnet-sdk" -Architecture "x64"

0 commit comments

Comments
 (0)