Skip to content

Commit 198c060

Browse files
author
github-actions
committed
Automated dotnet-install script update
1 parent 6654579 commit 198c060

2 files changed

Lines changed: 10 additions & 44 deletions

File tree

src/dotnet/scripts/vendor/dotnet-install.sh

Lines changed: 5 additions & 22 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

@@ -1545,7 +1536,7 @@ generate_regular_links() {
15451536
link_types+=("legacy")
15461537
else
15471538
legacy_download_link=""
1548-
say_verbose "Cound not construct a legacy_download_link; omitting..."
1539+
say_verbose "Could not construct a legacy_download_link; omitting..."
15491540
fi
15501541

15511542
# Check if the SDK version is already installed.
@@ -1648,7 +1639,7 @@ install_dotnet() {
16481639
say "The resource at $link_type link '$download_link' is not available."
16491640
;;
16501641
*)
1651-
say "Failed to download $link_type link '$download_link': $download_error_msg"
1642+
say "Failed to download $link_type link '$download_link': $http_code $download_error_msg"
16521643
;;
16531644
esac
16541645
rm -f "$zip_path" 2>&1 && say_verbose "Temporary archive file $zip_path was removed"
@@ -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."
@@ -1956,4 +1939,4 @@ fi
19561939

19571940
say "Note that the script does not resolve dependencies during installation."
19581941
say "To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the \"Dependencies\" section."
1959-
say "Installation finished successfully."
1942+
say "Installation finished successfully."

src/oryx/scripts/vendor/dotnet-install.sh

Lines changed: 5 additions & 22 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

@@ -1545,7 +1536,7 @@ generate_regular_links() {
15451536
link_types+=("legacy")
15461537
else
15471538
legacy_download_link=""
1548-
say_verbose "Cound not construct a legacy_download_link; omitting..."
1539+
say_verbose "Could not construct a legacy_download_link; omitting..."
15491540
fi
15501541

15511542
# Check if the SDK version is already installed.
@@ -1648,7 +1639,7 @@ install_dotnet() {
16481639
say "The resource at $link_type link '$download_link' is not available."
16491640
;;
16501641
*)
1651-
say "Failed to download $link_type link '$download_link': $download_error_msg"
1642+
say "Failed to download $link_type link '$download_link': $http_code $download_error_msg"
16521643
;;
16531644
esac
16541645
rm -f "$zip_path" 2>&1 && say_verbose "Temporary archive file $zip_path was removed"
@@ -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."
@@ -1956,4 +1939,4 @@ fi
19561939

19571940
say "Note that the script does not resolve dependencies during installation."
19581941
say "To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the \"Dependencies\" section."
1959-
say "Installation finished successfully."
1942+
say "Installation finished successfully."

0 commit comments

Comments
 (0)