From fb59eab0932b3c8b183c9392dfe8fdd60fcbd8f2 Mon Sep 17 00:00:00 2001 From: Jacques Eloff Date: Mon, 16 Dec 2024 15:06:56 -0800 Subject: [PATCH 1/2] Update CDN endpoint --- .../NuGet/NuGetPackSourceCheckerFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs b/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs index 90d4c27571d..f08c8b915b8 100644 --- a/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs +++ b/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs @@ -80,7 +80,7 @@ public async Task CreatePackSourceCheckerAsync(CommandArgs co private static async Task LoadExistingCacheAsync(CommandArgs config, CancellationToken cancellationToken) { Verbose.WriteLine($"Loading existing cache information."); - const string uri = "https://dotnet-templating.azureedge.net/search/NuGetTemplateSearchInfoVer2.json"; + const string uri = "https://dotnet-templating-hrdkctdrgkacbyek.b01.azurefd.net/search/NuGetTemplateSearchInfoVer2.json"; FileInfo? cacheFileLocation = config.DiffOverrideSearchCacheLocation; From 7150d9133f7f4d7de13b6fdf56a7582fe4bacce6 Mon Sep 17 00:00:00 2001 From: Jacques Eloff Date: Mon, 16 Dec 2024 15:36:43 -0800 Subject: [PATCH 2/2] Update URL with aka.ms --- .../NuGet/NuGetPackSourceCheckerFactory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs b/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs index f08c8b915b8..253f4094d6b 100644 --- a/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs +++ b/tools/Microsoft.TemplateSearch.TemplateDiscovery/NuGet/NuGetPackSourceCheckerFactory.cs @@ -80,7 +80,9 @@ public async Task CreatePackSourceCheckerAsync(CommandArgs co private static async Task LoadExistingCacheAsync(CommandArgs config, CancellationToken cancellationToken) { Verbose.WriteLine($"Loading existing cache information."); - const string uri = "https://dotnet-templating-hrdkctdrgkacbyek.b01.azurefd.net/search/NuGetTemplateSearchInfoVer2.json"; + // aka.ms link should point to https://dotnet-templating-hrdkctdrgkacbyek.b01.azurefd.net/search/NuGetTemplateSearchInfoVer2.json or + // whatever the future absolute URL for the JSON file is. + const string uri = "https://aka.ms/dotnet/templating/searchcacheurl"; FileInfo? cacheFileLocation = config.DiffOverrideSearchCacheLocation;