mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-25 10:02:47 +00:00
Rewrites the Node.js release classification pipeline in Go. webicached fetches upstream releases (GitHub, Gitea, GitLab, HashiCorp, custom sources), classifies assets by OS/arch/variant, and writes legacy-format JSON caches compatible with the existing webinstall.dev API. Git-clone packages emit git_tag and git_commit_hash from real repo clones — no fabricated refs.
20 lines
527 B
Go
20 lines
527 B
Go
// Package sass provides variant tagging for Dart Sass releases.
|
|
//
|
|
// Dart Sass uses bare "arm" in filenames to mean ARMv7 (the Dart VM's
|
|
// minimum ARM target). The generic classifier maps bare "arm" to armv6,
|
|
// so we correct it here.
|
|
package sassdist
|
|
|
|
import (
|
|
"github.com/webinstall/webi-installers/internal/storage"
|
|
)
|
|
|
|
// TagVariants remaps bare arm → armv7 for Dart Sass assets.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
if assets[i].Arch == "armv6" {
|
|
assets[i].Arch = "armv7"
|
|
}
|
|
}
|
|
}
|