mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-07 02:46:50 +00:00
internal/resolve: picks the best release for a platform query. Handles arch compatibility fallbacks (Rosetta 2, Windows ARM64 emulation, amd64 micro-arch levels), format preferences, variant filtering (prefers base over rocm/jetpack GPU variants), and universal (arch-less) binaries. cmd/e2etest: fetches releases for goreleaser, ollama, and node, classifies them, resolves for 9 test queries across linux/darwin/ windows x86_64/arm64, then compares against the live webi.sh API. Results: 8/9 exact match, 1 warn where the Go resolver is more correct than the live API (ollama arm64 base vs jetpack variant). Edge cases fixed during development: - .tgz is a valid archive format (not npm metadata) - Empty arch in filename = universal binary (ranked below native) - GPU variants (rocm, jetpack) ranked below base binaries