Skip to content

Commit

Permalink
Update dotnetcli domain (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
richlander authored Jan 15, 2025
1 parent f7d5650 commit 42b08e3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To do the install on linux, we just run the `installCommand`.
### Newest on Win/Mac -- The Available SDK API:
This uses the data from:
https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json
https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json

We created an API to get the newest SDKs available that were in support. We can use this for Windows and Mac to tell which SDK to use.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Visit https://dotnet.microsoft.com/platform/support/policy/dotnet-core for suppo
*/
private getIndexUrl(majorMinor : string ) : string
{
return `https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/${majorMinor}/releases.json`;
return `https://builds.dotnet.microsoft.com/dotnet/release-metadata/${majorMinor}/releases.json`;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { DotnetInstallMode } from './DotnetInstallMode';

export class VersionResolver implements IVersionResolver {
protected webWorker: WebRequestWorker;
private readonly releasesUrl = 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json';
private readonly releasesUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';

constructor(
private readonly context : IAcquisitionWorkerContext,
Expand Down
10 changes: 5 additions & 5 deletions vscode-dotnet-runtime-library/src/test/mocks/mock-releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"support-phase": "maintenance",
"release-type" : "lts",
"eol-date": "2019-12-23",
"releases.json": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.2/releases.json"
"releases.json": "https://builds.dotnet.microsoft.com/dotnet/release-metadata/2.2/releases.json"
},
{
"channel-version": "2.1",
Expand All @@ -24,7 +24,7 @@
"release-type" : "lts",
"support-phase": "lts",
"eol-date": null,
"releases.json": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.1/releases.json"
"releases.json": "https://builds.dotnet.microsoft.com/dotnet/release-metadata/2.1/releases.json"
},
{
"channel-version": "2.0",
Expand All @@ -37,7 +37,7 @@
"release-type" : "lts",
"support-phase": "eol",
"eol-date": "2018-10-01",
"releases.json": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.0/releases.json"
"releases.json": "https://builds.dotnet.microsoft.com/dotnet/release-metadata/2.0/releases.json"
},
{
"channel-version": "1.1",
Expand All @@ -50,7 +50,7 @@
"release-type" : "lts",
"support-phase": "eol",
"eol-date": "2019-06-27",
"releases.json": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/1.1/releases.json"
"releases.json": "https://builds.dotnet.microsoft.com/dotnet/release-metadata/1.1/releases.json"
},
{
"channel-version": "1.0",
Expand All @@ -63,7 +63,7 @@
"release-type" : "lts",
"support-phase": "eol",
"eol-date": "2019-06-27",
"releases.json": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/1.0/releases.json"
"releases.json": "https://builds.dotnet.microsoft.com/dotnet/release-metadata/1.0/releases.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ chai.use(chaiAsPromised);

const maxTimeoutTime = 10000;
// Website used for the sake of it returning the same response always (tm)
const staticWebsiteUrl = 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.1/releases.json';
const staticWebsiteUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/2.1/releases.json';

suite('WebRequestWorker Unit Tests', () => {
test('Acquire Version Network Failure', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ suite('DotnetCoreAcquisitionExtension End to End', function()
const newestVersion = '6.0.408';
const mockAcquisitionContext = getMockAcquisitionContext('sdk', '');

const url = 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json'
const url = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/6.0/releases.json'
const webWorker = new MockIndexWebRequestWorker(mockAcquisitionContext, url);
webWorker.knownUrls.push(url);
// Note that ZIPS in the data below come before EXEs to make sure the file extension check works.
Expand Down

0 comments on commit 42b08e3

Please sign in to comment.