Skip to content

Commit df963d0

Browse files
cyx-6claude
andcommitted
[FIX] Download micromamba from GitHub releases (micro.mamba.pm cert expired)
The micro.mamba.pm TLS certificate has expired, breaking both Invoke-WebRequest and curl.exe downloads. Switch to the GitHub releases URL which hosts the same micromamba executable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 05f7c9c commit df963d0

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

addons/tvm-ffi-orcjit/tools/install_llvm.ps1

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,23 @@ $Prefix = if ($env:LLVM_PREFIX) { $env:LLVM_PREFIX } else { "C:\opt\llvm" }
3333

3434
Write-Host "Installing LLVM $Version to $Prefix"
3535

36-
# Install micromamba
37-
$MicromambaUrl = "https://micro.mamba.pm/api/micromamba/win-64/latest"
38-
$MicromambaDir = "$env:TEMP\micromamba"
39-
$MicromambaExe = "$MicromambaDir\Library\bin\micromamba.exe"
36+
# Install micromamba from GitHub releases (micro.mamba.pm cert expired as of 2026-03)
37+
$MicromambaExe = "$env:TEMP\micromamba.exe"
4038

4139
if (-not (Test-Path $MicromambaExe)) {
42-
Write-Host "Downloading micromamba..."
43-
New-Item -ItemType Directory -Path $MicromambaDir -Force | Out-Null
44-
$tarball = "$env:TEMP\micromamba.tar.bz2"
40+
Write-Host "Downloading micromamba from GitHub releases..."
4541
$maxRetries = 3
4642
for ($attempt = 1; $attempt -le $maxRetries; $attempt++) {
4743
try {
48-
# Use curl.exe (native Windows curl) instead of Invoke-WebRequest
49-
# to avoid .NET TLS certificate trust issues on GitHub Actions runners.
50-
& curl.exe -sSL -o $tarball $MicromambaUrl
44+
& curl.exe -sSL -o $MicromambaExe "https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-win-64.exe"
5145
if ($LASTEXITCODE -ne 0) { throw "curl failed with exit code $LASTEXITCODE" }
52-
# Extract using tar (available on Windows 10+)
53-
tar -xvjf $tarball -C $MicromambaDir
5446
break
5547
} catch {
5648
Write-Host "Attempt $attempt/$maxRetries failed: $_"
5749
if ($attempt -eq $maxRetries) { throw }
5850
Start-Sleep -Seconds 5
5951
}
6052
}
61-
if (-not (Test-Path $MicromambaExe)) {
62-
throw "Failed to extract micromamba"
63-
}
6453
}
6554
Write-Host "Using micromamba: $MicromambaExe"
6655

0 commit comments

Comments
 (0)