mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +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.
19 lines
682 B
Go
19 lines
682 B
Go
// Package uuidv7 provides variant tagging for uuidv7 releases.
|
|
package uuidv7dist
|
|
|
|
import "github.com/webinstall/webi-installers/internal/storage"
|
|
|
|
// TagVariants tags uuidv7-specific build variants for exclusion from legacy export.
|
|
//
|
|
// uuidv7 ships powerpc (32-bit) and powerpc64 binaries alongside the common
|
|
// platforms. Webi does not serve powerpc targets, and production Node also
|
|
// classifies these as os="", arch="" (not routable). Tag them unsupported.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
switch assets[i].Arch {
|
|
case "powerpc", "ppc64", "ppc64le":
|
|
assets[i].Variants = append(assets[i].Variants, "unsupported-platform")
|
|
}
|
|
}
|
|
}
|