DEBUG:    2+  >>>> & $env:CAPTURE_SCRIPT

DEBUG:   16+  >>>> $ErrorActionPreference = "Stop"

DEBUG:   17+  >>>> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

DEBUG:   19+  >>>> $repo = "pingdotgg/t3code"

DEBUG:   20+  >>>> $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:37323/$repo/releases/download" }

DEBUG:   20+ $baseUrl = if ( >>>> $env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:37323/$repo/releases/download" }

DEBUG:   20+ $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) {  >>>> $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:37323/$repo/releases/download" }

DEBUG:   21+  >>>> $t3Home = if ($env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   21+ $t3Home = if ( >>>> $env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   21+ $t3Home = if ($env:T3CODE_HOME) {  >>>> $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   22+  >>>> $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   22+ $binDir = if ( >>>> $env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   22+ $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) {  >>>> $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   24+  >>>> $binDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($binDir)

DEBUG:   31+  >>>> $terminal = -not [Console]::IsErrorRedirected -and $env:TERM -ne "dumb"

DEBUG:   32+  >>>> $interactive = $terminal -and $Host.UI.SupportsVirtualTerminal

DEBUG:   33+ if ( >>>> $interactive) {

DEBUG:   39+  >>>> $esc = [char]27

DEBUG:   40+  >>>> $reset = $bold = $muted = $accent = $green = ""

DEBUG:   40+ $reset =  >>>> $bold = $muted = $accent = $green = ""

DEBUG:   40+ $reset = $bold =  >>>> $muted = $accent = $green = ""

DEBUG:   40+ $reset = $bold = $muted =  >>>> $accent = $green = ""

DEBUG:   40+ $reset = $bold = $muted = $accent =  >>>> $green = ""

DEBUG:   41+ if ( >>>> $interactive -and -not $env:NO_COLOR) {

DEBUG:  120+  >>>> $version="1.2.3"; $arch="x64"; $staging=$env:CAPTURE_STAGING; $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  120+ $version="1.2.3";  >>>> $arch="x64"; $staging=$env:CAPTURE_STAGING; $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  120+ $version="1.2.3"; $arch="x64";  >>>> $staging=$env:CAPTURE_STAGING; $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  120+ $version="1.2.3"; $arch="x64"; $staging=$env:CAPTURE_STAGING;  >>>> $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  121+  >>>> New-Item -ItemType Directory -Force -Path $staging | Out-Null

DEBUG:  123+        >>>> Fetch "$baseUrl/v$version/SHA256SUMS" (Join-Path $staging "SHA256SUMS")

DEBUG:   80+ function Fetch([string] $uri, [string] $destination, [switch] $progress)  >>>> {

DEBUG:   81+   if ( >>>> -not $progress -or -not $interactive) {

DEBUG:   82+      >>>> $ProgressPreference = if ($progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   82+     $ProgressPreference = if ( >>>> $progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   82+     $ProgressPreference = if ($progress -and $terminal) { "Continue" } else {  >>>> "SilentlyContinue" }

DEBUG:   83+      >>>> Invoke-Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   74+ function Invoke-Retrying([scriptblock] $request)  >>>> {

DEBUG:   75+   for ( >>>> $attempt = 1; ; $attempt++) {

DEBUG:   76+     try { return  >>>> & $request }

DEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   83+     Invoke-Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing  >>>> }

DEBUG:   79+  >>>> }

DEBUG:   84+      >>>> return

DEBUG:  119+  >>>> }

DEBUG:  131+      >>>> Fetch "$baseUrl/v$version/$archive" (Join-Path $staging $archive) -progress

DEBUG:   80+ function Fetch([string] $uri, [string] $destination, [switch] $progress)  >>>> {

DEBUG:   81+   if ( >>>> -not $progress -or -not $interactive) {

DEBUG:   82+      >>>> $ProgressPreference = if ($progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   82+     $ProgressPreference = if ( >>>> $progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   82+     $ProgressPreference = if ($progress -and $terminal) { "Continue" } else {  >>>> "SilentlyContinue" }

DEBUG:   83+      >>>> Invoke-Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   74+ function Invoke-Retrying([scriptblock] $request)  >>>> {

DEBUG:   75+   for ( >>>> $attempt = 1; ; $attempt++) {

DEBUG:   76+     try { return  >>>> & $request }

DEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   83+     Invoke-Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing  >>>> }

DEBUG:   79+  >>>> }

DEBUG:   84+      >>>> return

DEBUG:  119+  >>>> }

DEBUG:  133+      >>>> Step "Verifying the download..."

DEBUG:   45+ function Step([string] $message)  >>>> {

DEBUG:   46+   if ( >>>> $interactive) { [Console]::Error.Write("`r$esc[2K  $muted$message$reset") }

DEBUG:   47+   else {  >>>> [Console]::Error.WriteLine("  $message") }

  Verifying the download...
DEBUG:   48+  >>>> }

DEBUG:  135+      >>>> $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object { $_ -match "\s\*?$([regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object  >>>> { $_ -match "\s\*?$([regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object {  >>>> $_ -match "\s\*?$([regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object { $_ -match "\s\*?$( >>>> [regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object { $_ -match "\s\*?$([regex]::Escape($archive))$"  >>>> } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object  >>>> { $_ -match "\s\*?$([regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object {  >>>> $_ -match "\s\*?$([regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object { $_ -match "\s\*?$( >>>> [regex]::Escape($archive))$" } | Select-Object -First 1)

DEBUG:  135+     $expected = (Get-Content (Join-Path $staging "SHA256SUMS") | Where-Object { $_ -match "\s\*?$([regex]::Escape($archive))$"  >>>> } | Select-Object -First 1)

DEBUG:  136+     if ( >>>> -not $expected) { Fail "$archive is not listed in SHA256SUMS" }

DEBUG:  137+      >>>> $expected = ($expected -split "\s+")[0].ToLowerInvariant()

DEBUG:  138+      >>>> $actual = (Get-FileHash -Algorithm SHA256 (Join-Path $staging $archive)).Hash.ToLowerInvariant()

DEBUG:  139+     if ( >>>> $actual -ne $expected) { Fail "checksum mismatch for $archive" }

DEBUG:  139+     if ($actual -ne $expected) {  >>>> Fail "checksum mismatch for $archive" }

DEBUG:   26+ function Fail([string] $message)  >>>> {

DEBUG:   27+    >>>> Write-Error "t3 install: $message"

Write-Error: /tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P20-checksum-invalid-digest/after/install.ps1:139
Line |
 139 |  …  if ($actual -ne $expected) { Fail "checksum mismatch for $archive" }
     |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | t3 install: checksum mismatch for t3-1.2.3-win32-x64.zip
