[windows] Remove checksum validation for WSL2 and AzCosmos db (#12425)

This commit is contained in:
kishorekumar-anchala
2025-06-19 21:59:20 +05:30
committed by GitHub
parent 9c685e8b41
commit 938abb9f14
3 changed files with 5 additions and 6 deletions

View File

@@ -198,6 +198,7 @@ function Invoke-DownloadWithRetry {
for ($retries = 20; $retries -gt 0; $retries--) {
try {
$attemptStartTime = Get-Date
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri $Url -OutFile $Path -UseBasicParsing
$attemptSeconds = [math]::Round(($(Get-Date) - $attemptStartTime).TotalSeconds, 2)
Write-Host "Package downloaded in $attemptSeconds seconds"
@@ -794,7 +795,7 @@ function Get-ChecksumFromGithubRelease {
[Parameter(Mandatory = $true)]
[Alias("File", "Asset")]
[string] $FileName,
[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $false)]
[ValidateSet("SHA256", "SHA512")]
[string] $HashType
)
@@ -867,7 +868,7 @@ function Get-ChecksumFromUrl {
[Parameter(Mandatory = $true)]
[Alias("File", "Asset")]
[string] $FileName,
[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $false)]
[ValidateSet("SHA256", "SHA512")]
[Alias("Type")]
[string] $HashType