Skip to content

Commit 42becce

Browse files
authored
Remove blob storage domain from eng/updater (#6152)
1 parent 3a5b6d1 commit 42becce

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

eng/update-dependencies/DockerfileShaUpdater.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ namespace Dotnet.Docker
2323
/// </summary>
2424
public class DockerfileShaUpdater : FileRegexUpdater
2525
{
26-
private const string ReleaseDotnetBaseUrl = $"https://dotnetcli.blob.core.windows.net/dotnet";
2726
private const string ReleaseDotnetBaseCdnUrl = $"https://builds.dotnet.microsoft.com/dotnet";
2827

2928
private const string ShaVariableGroupName = "shaVariable";
@@ -146,7 +145,7 @@ public static IEnumerable<IDependencyUpdater> CreateUpdaters(
146145
protected override string? TryGetDesiredValue(
147146
IEnumerable<IDependencyInfo> dependencyBuildInfos, out IEnumerable<IDependencyInfo> usedBuildInfos)
148147
{
149-
usedBuildInfos = [ dependencyBuildInfos.First(info => info.SimpleName == _productName) ];
148+
usedBuildInfos = [dependencyBuildInfos.First(info => info.SimpleName == _productName)];
150149

151150
string baseUrl = ManifestHelper.GetBaseUrl(_manifestVariables.Value, _options);
152151
// Remove Aspire Dashboard case once https://github.com/dotnet/aspire/issues/2035 is fixed.
@@ -289,7 +288,7 @@ private static string GetArch(string[] variableParts)
289288
// the daily build location, we wouldn't use the release checksums file and instead use the other means of
290289
// retrieving the checksums.
291290
string baseUrl = ManifestHelper.GetBaseUrl(_manifestVariables.Value, _options);
292-
if (baseUrl != ReleaseDotnetBaseUrl && baseUrl != ReleaseDotnetBaseCdnUrl)
291+
if (baseUrl != ReleaseDotnetBaseCdnUrl)
293292
{
294293
return null;
295294
}
@@ -350,7 +349,7 @@ private async Task<IDictionary<string, string>> GetChecksumsFromChecksumsFile()
350349

351350
private async Task<IDictionary<string, string>> GetDotnetReleaseChecksums(string? version)
352351
{
353-
string uri = $"{ReleaseDotnetBaseUrl}/checksums/{version}-sha.txt";
352+
string uri = $"{ReleaseDotnetBaseCdnUrl}/checksums/{version}-sha.txt";
354353

355354
return await GetChecksums(
356355
uri,

0 commit comments

Comments
 (0)