mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-01-18 22:31:44 +07:00
Remove logic for azureedge.net fallback in preparation for install script changes (v3)
This commit is contained in:
parent
ea9897a6e5
commit
2098132e3c
1
dist/setup/index.js
vendored
1
dist/setup/index.js
vendored
@ -71286,7 +71286,6 @@ class DotnetVersionResolver {
|
|||||||
}
|
}
|
||||||
exports.DotnetVersionResolver = DotnetVersionResolver;
|
exports.DotnetVersionResolver = DotnetVersionResolver;
|
||||||
DotnetVersionResolver.DotNetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/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 DotnetCoreInstaller {
|
class DotnetCoreInstaller {
|
||||||
constructor(version, quality) {
|
constructor(version, quality) {
|
||||||
this.version = version;
|
this.version = version;
|
||||||
|
@ -102,16 +102,9 @@ export class DotnetVersionResolver {
|
|||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
});
|
});
|
||||||
|
|
||||||
let response;
|
const response = await httpClient.getJson<any>(
|
||||||
try {
|
DotnetVersionResolver.DotNetCoreIndexUrl
|
||||||
response = await httpClient.getJson<any>(
|
);
|
||||||
DotnetVersionResolver.DotNetCoreIndexUrl
|
|
||||||
);
|
|
||||||
} catch (error) {
|
|
||||||
response = await httpClient.getJson<any>(
|
|
||||||
DotnetVersionResolver.DotnetCoreIndexFallbackUrl
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = response.result || {};
|
const result = response.result || {};
|
||||||
const releasesInfo: any[] = result['releases-index'];
|
const releasesInfo: any[] = result['releases-index'];
|
||||||
@ -132,9 +125,6 @@ export class DotnetVersionResolver {
|
|||||||
|
|
||||||
static DotNetCoreIndexUrl =
|
static DotNetCoreIndexUrl =
|
||||||
'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
|
'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
|
||||||
|
|
||||||
static DotnetCoreIndexFallbackUrl =
|
|
||||||
'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DotnetCoreInstaller {
|
export class DotnetCoreInstaller {
|
||||||
|
Loading…
Reference in New Issue
Block a user