winget + bun on arm64 = "Hash not found for hardlink target"

Feb 12, 2025
60
0
0
bun wont install through winget on arm64, the bunx alias trips this

Hash not found for hardlink target: C:\Users\<user>\AppData\Local\Microsoft\WinGet\Packages\Oven-sh.Bun_Microsoft.Winget.Source_8wekyb3d8bbwe\.\bun-windows-aarch64\bun.exe
0x8a150052 : Failed to install portable package

worse part, it leaves an EMPTY uninstall key in HKCU so every retry fails with "different source already exists" until that key gets deleted
 
theres an open PR for this on the winget repo now. an alias pointing at a file inside a subfolder of the zip never gets its hash recorded, so the hardlink lookup always misses

stable 1.29.380 doesnt have the hardlink code at all so it isnt hit