Skip to content

Commit

Permalink
Merge pull request #577 from actions/remove-cdn-fallback-v1
Browse files Browse the repository at this point in the history
`v1` - Remove `dotnetcli.blob.core.windows.net` storage account fallback logic and update install scripts
  • Loading branch information
zaataylor authored Feb 10, 2025
2 parents 71a4fd9 + 67cd79c commit 871f041
Showing 5 changed files with 219 additions and 265 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ jobs:
runs-on: ubuntu-22.04
env:
https_proxy: http://no-such-proxy:3128
no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net
no_proxy: github.com,download.visualstudio.microsoft.com,api.nuget.org,builds.dotnet.microsoft.com,ci.dot.net
steps:
- name: Checkout
uses: actions/checkout@v2
9 changes: 1 addition & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -18168,13 +18168,7 @@ class DotnetCoreInstaller {
}
getReleasesJsonUrl(httpClient, versionParts) {
return __awaiter(this, void 0, void 0, function* () {
let response;
try {
response = yield httpClient.getJson(DotNetCoreIndexUrl);
}
catch (error) {
response = yield httpClient.getJson(DotnetCoreIndexFallbackUrl);
}
const response = yield httpClient.getJson(DotNetCoreIndexUrl);
const result = response.result || {};
let releasesInfo = result['releases-index'];
releasesInfo = releasesInfo.filter((info) => {
@@ -18199,7 +18193,6 @@ class DotnetCoreInstaller {
}
exports.DotnetCoreInstaller = DotnetCoreInstaller;
const DotNetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
const DotnetCoreIndexFallbackUrl = 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json';


/***/ }),
Loading
Oops, something went wrong.

0 comments on commit 871f041

Please sign in to comment.