mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +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.
17 lines
469 B
Go
17 lines
469 B
Go
package servicemandist
|
|
|
|
import (
|
|
"github.com/webinstall/webi-installers/internal/storage"
|
|
)
|
|
|
|
// TagVariants marks all git-format entries as POSIX-only.
|
|
// serviceman's git clone installs a POSIX shell script — no Windows support.
|
|
// Binary releases (v0.8.x tar.gz/zip) already have per-platform OS set.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
if assets[i].Format == "git" && assets[i].OS == "" {
|
|
assets[i].OS = "posix_2017"
|
|
}
|
|
}
|
|
}
|