mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-02-03 17:36:42 -05:00
V4 - Use new .NET CDN URLs and update to latest install scripts (#566)
Some checks failed
Basic validation / Basic validation (push) Failing after 0s
Check dist/ / Check dist/ (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
Licensed / Licensed (push) Failing after 0s
e2e tests / test-setup-multiple-versions (macos-13) (push) Has been cancelled
e2e tests / test-setup-multiple-versions (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-multiple-versions (windows-latest) (push) Has been cancelled
e2e tests / test-setup-multiple-versions-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-multiple-versions-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-full-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-full-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-full-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-full-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-full-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-without-patch-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-without-patch-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-without-patch-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-without-patch-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-without-patch-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-prerelease-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-prerelease-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-prerelease-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-prerelease-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-prerelease-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (macos-13) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (macos-latest) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (ubuntu-latest) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-wildcard (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-wildcard (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-with-wildcard (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-wildcard-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-wildcard-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-only (macos-13) (push) Has been cancelled
e2e tests / test-setup-global-json-only (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-global-json-only (windows-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-only-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-only-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-global-json-with-comments (macos-13) (push) Has been cancelled
e2e tests / test-global-json-with-comments (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-global-json-with-comments (windows-latest) (push) Has been cancelled
e2e tests / test-global-json-with-comments-extended (macos-latest) (push) Has been cancelled
e2e tests / test-global-json-with-comments-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-cache (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-with-cache (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (macos-13) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (macos-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (ubuntu-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (windows-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (macos-13) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (macos-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (ubuntu-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (windows-latest) (push) Has been cancelled
e2e tests / test-proxy (push) Has been cancelled
e2e tests / test-bypass-proxy (push) Has been cancelled
e2e tests / test-bypass-proxy-extended (push) Has been cancelled
e2e tests / test-sequential-version-installation (7.0.203, 3.1.426, macos-13) (push) Has been cancelled
e2e tests / test-sequential-version-installation (7.0.203, 3.1.426, ubuntu-22.04) (push) Has been cancelled
e2e tests / test-sequential-version-installation (7.0.203, 3.1.426, windows-latest) (push) Has been cancelled
e2e tests / test-sequential-version-installation-extended (8.0.403, 6.0.425, macos-latest) (push) Has been cancelled
e2e tests / test-sequential-version-installation-extended (8.0.403, 6.0.425, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (2.1, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (2.1, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (2.1, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (2.2, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (2.2, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (2.2, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (3.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (3.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (3.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (3.1, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (3.1, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (3.1, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (5.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (5.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (5.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (6.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (6.0, macos-latest) (push) Has been cancelled
Validate dotnet / setup-version (6.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (6.0, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (6.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (7.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (7.0, macos-latest) (push) Has been cancelled
Validate dotnet / setup-version (7.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (7.0, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (7.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (8.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (8.0, macos-latest) (push) Has been cancelled
Validate dotnet / setup-version (8.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (8.0, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (8.0, windows-latest) (push) Has been cancelled
Some checks failed
Basic validation / Basic validation (push) Failing after 0s
Check dist/ / Check dist/ (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
Licensed / Licensed (push) Failing after 0s
e2e tests / test-setup-multiple-versions (macos-13) (push) Has been cancelled
e2e tests / test-setup-multiple-versions (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-multiple-versions (windows-latest) (push) Has been cancelled
e2e tests / test-setup-multiple-versions-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-multiple-versions-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-full-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-full-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-full-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-full-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-full-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-without-patch-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-without-patch-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-without-patch-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-without-patch-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-without-patch-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-prerelease-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-prerelease-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-prerelease-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-prerelease-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-prerelease-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-latest-patch-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (macos-13) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (macos-latest) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (ubuntu-latest) (push) Has been cancelled
e2e tests / test-ABCxx-syntax (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-wildcard (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-wildcard (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-with-wildcard (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-wildcard-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-wildcard-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version (macos-13) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version (windows-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-specified-and-version-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-only (macos-13) (push) Has been cancelled
e2e tests / test-setup-global-json-only (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-global-json-only (windows-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-only-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-global-json-only-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-global-json-with-comments (macos-13) (push) Has been cancelled
e2e tests / test-global-json-with-comments (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-global-json-with-comments (windows-latest) (push) Has been cancelled
e2e tests / test-global-json-with-comments-extended (macos-latest) (push) Has been cancelled
e2e tests / test-global-json-with-comments-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-with-dotnet-quality (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-cache (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-with-cache (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path (macos-13) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path (ubuntu-22.04) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path (windows-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path-extended (macos-latest) (push) Has been cancelled
e2e tests / test-setup-with-cache-dependency-path-extended (ubuntu-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (macos-13) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (macos-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (ubuntu-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-single-version-installation (windows-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (macos-13) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (macos-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (ubuntu-latest) (push) Has been cancelled
e2e tests / test-dotnet-version-output-during-multiple-version-installation (windows-latest) (push) Has been cancelled
e2e tests / test-proxy (push) Has been cancelled
e2e tests / test-bypass-proxy (push) Has been cancelled
e2e tests / test-bypass-proxy-extended (push) Has been cancelled
e2e tests / test-sequential-version-installation (7.0.203, 3.1.426, macos-13) (push) Has been cancelled
e2e tests / test-sequential-version-installation (7.0.203, 3.1.426, ubuntu-22.04) (push) Has been cancelled
e2e tests / test-sequential-version-installation (7.0.203, 3.1.426, windows-latest) (push) Has been cancelled
e2e tests / test-sequential-version-installation-extended (8.0.403, 6.0.425, macos-latest) (push) Has been cancelled
e2e tests / test-sequential-version-installation-extended (8.0.403, 6.0.425, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (2.1, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (2.1, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (2.1, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (2.2, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (2.2, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (2.2, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (3.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (3.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (3.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (3.1, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (3.1, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (3.1, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (5.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (5.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (5.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (6.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (6.0, macos-latest) (push) Has been cancelled
Validate dotnet / setup-version (6.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (6.0, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (6.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (7.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (7.0, macos-latest) (push) Has been cancelled
Validate dotnet / setup-version (7.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (7.0, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (7.0, windows-latest) (push) Has been cancelled
Validate dotnet / setup-version (8.0, macos-13) (push) Has been cancelled
Validate dotnet / setup-version (8.0, macos-latest) (push) Has been cancelled
Validate dotnet / setup-version (8.0, ubuntu-22.04) (push) Has been cancelled
Validate dotnet / setup-version (8.0, ubuntu-latest) (push) Has been cancelled
Validate dotnet / setup-version (8.0, windows-latest) (push) Has been cancelled
* Use new .NET CDN URL * Update to latest install-dotnet scripts * Use signed version of new `install-dotnet.ps1` * Add fallback to old CDN URL
This commit is contained in:
parent
e4c228a841
commit
87b7050bc5
4 changed files with 1704 additions and 1608 deletions
11
dist/setup/index.js
vendored
11
dist/setup/index.js
vendored
|
@ -93806,7 +93806,13 @@ class DotnetVersionResolver {
|
|||
allowRetries: true,
|
||||
maxRetries: 3
|
||||
});
|
||||
const response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexUrl);
|
||||
let response;
|
||||
try {
|
||||
response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexUrl);
|
||||
}
|
||||
catch (error) {
|
||||
response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexFallbackUrl);
|
||||
}
|
||||
const result = response.result || {};
|
||||
const releasesInfo = result['releases-index'];
|
||||
const releaseInfo = releasesInfo.find(info => {
|
||||
|
@ -93821,7 +93827,8 @@ class DotnetVersionResolver {
|
|||
}
|
||||
}
|
||||
exports.DotnetVersionResolver = DotnetVersionResolver;
|
||||
DotnetVersionResolver.DotnetCoreIndexUrl = 'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json';
|
||||
DotnetVersionResolver.DotnetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
|
||||
DotnetVersionResolver.DotnetCoreIndexFallbackUrl = 'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json';
|
||||
class DotnetInstallScript {
|
||||
constructor() {
|
||||
this.scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
||||
|
|
3222
externals/install-dotnet.ps1
vendored
3222
externals/install-dotnet.ps1
vendored
File diff suppressed because it is too large
Load diff
62
externals/install-dotnet.sh
vendored
62
externals/install-dotnet.sh
vendored
|
@ -1272,6 +1272,61 @@ downloadwget() {
|
|||
return 0
|
||||
}
|
||||
|
||||
extract_stem() {
|
||||
local url="$1"
|
||||
# extract the protocol
|
||||
proto="$(echo $1 | grep :// | sed -e's,^\(.*://\).*,\1,g')"
|
||||
# remove the protocol
|
||||
url="${1/$proto/}"
|
||||
# extract the path (if any) - since we know all of our feeds have a first path segment, we can skip the first one. otherwise we'd use -f2- to get the full path
|
||||
full_path="$(echo $url | grep / | cut -d/ -f2-)"
|
||||
path="$(echo $full_path | cut -d/ -f2-)"
|
||||
echo $path
|
||||
}
|
||||
|
||||
check_url_exists() {
|
||||
eval $invocation
|
||||
local url="$1"
|
||||
|
||||
local code=""
|
||||
if machine_has "curl"
|
||||
then
|
||||
code=$(curl --head -o /dev/null -w "%{http_code}" -s --fail "$url");
|
||||
elif machine_has "wget"
|
||||
then
|
||||
# get the http response, grab the status code
|
||||
server_response=$(wget -qO- --method=HEAD --server-response "$url" 2>&1)
|
||||
code=$(echo "$server_response" | grep "HTTP/" | awk '{print $2}')
|
||||
fi
|
||||
if [ $code = "200" ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
sanitize_redirect_url() {
|
||||
eval $invocation
|
||||
|
||||
local url_stem
|
||||
url_stem=$(extract_stem "$1")
|
||||
say_verbose "Checking configured feeds for the asset at ${yellow:-}$url_stem${normal:-}"
|
||||
|
||||
for feed in "${feeds[@]}"
|
||||
do
|
||||
local trial_url="$feed/$url_stem"
|
||||
say_verbose "Checking ${yellow:-}$trial_url${normal:-}"
|
||||
if check_url_exists "$trial_url"; then
|
||||
say_verbose "Found a match at ${yellow:-}$trial_url${normal:-}"
|
||||
echo "$trial_url"
|
||||
return 0
|
||||
else
|
||||
say_verbose "No match at ${yellow:-}$trial_url${normal:-}"
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
get_download_link_from_aka_ms() {
|
||||
eval $invocation
|
||||
|
||||
|
@ -1324,6 +1379,11 @@ get_download_link_from_aka_ms() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
sanitized_redirect_url=$(sanitize_redirect_url "$aka_ms_download_link")
|
||||
if [[ -n "$sanitized_redirect_url" ]]; then
|
||||
aka_ms_download_link="$sanitized_redirect_url"
|
||||
fi
|
||||
|
||||
say_verbose "The redirect location retrieved: '$aka_ms_download_link'."
|
||||
return 0
|
||||
else
|
||||
|
@ -1335,7 +1395,9 @@ get_download_link_from_aka_ms() {
|
|||
get_feeds_to_use()
|
||||
{
|
||||
feeds=(
|
||||
"https://builds.dotnet.microsoft.com/dotnet"
|
||||
"https://dotnetcli.azureedge.net/dotnet"
|
||||
"https://ci.dot.net/public"
|
||||
"https://dotnetbuilds.azureedge.net/public"
|
||||
)
|
||||
|
||||
|
|
|
@ -101,9 +101,18 @@ export class DotnetVersionResolver {
|
|||
allowRetries: true,
|
||||
maxRetries: 3
|
||||
});
|
||||
const response = await httpClient.getJson<any>(
|
||||
DotnetVersionResolver.DotnetCoreIndexUrl
|
||||
);
|
||||
|
||||
let response;
|
||||
try {
|
||||
response = await httpClient.getJson<any>(
|
||||
DotnetVersionResolver.DotnetCoreIndexUrl
|
||||
);
|
||||
} catch (error) {
|
||||
response = await httpClient.getJson<any>(
|
||||
DotnetVersionResolver.DotnetCoreIndexFallbackUrl
|
||||
);
|
||||
}
|
||||
|
||||
const result = response.result || {};
|
||||
const releasesInfo: any[] = result['releases-index'];
|
||||
|
||||
|
@ -122,6 +131,8 @@ export class DotnetVersionResolver {
|
|||
}
|
||||
|
||||
static DotnetCoreIndexUrl =
|
||||
'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
|
||||
static DotnetCoreIndexFallbackUrl =
|
||||
'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue