Skip to content

Commit dd70cca

Browse files
committed
Update sha extension in update-dependencies
1 parent 76bcbdc commit dd70cca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eng/update-dependencies/DockerfileShaUpdater.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,12 @@ private static string GetArch(string[] variableParts)
223223
private async Task<string?> GetDotNetBinaryStorageChecksumsShaAsync(string productDownloadUrl)
224224
{
225225
string? sha = null;
226-
string shaExt = _options.IsInternal || !_productName.Contains("sdk", StringComparison.OrdinalIgnoreCase) ? ".sha512" : ".sha";
227226

228227
string shaUrl = productDownloadUrl
229228
.Replace("/dotnetcli", "/dotnetclichecksums")
230229
.Replace("/internal/", "/internal-checksums/")
231230
.Replace("/public/", "/public-checksums/")
232-
+ shaExt;
231+
+ ".sha512";
233232

234233
Trace.TraceInformation($"Downloading '{shaUrl}'.");
235234
using (HttpResponseMessage response = await s_httpClient.GetAsync(shaUrl))

0 commit comments

Comments
 (0)