mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-27 19:12:57 +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.
26 lines
719 B
Go
26 lines
719 B
Go
// Package gitea provides variant tagging for Gitea releases.
|
|
//
|
|
// Gitea publishes "gogit" builds that use an alternative pure-Go Git
|
|
// backend instead of the default C Git library.
|
|
package gitea
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/webinstall/webi-installers/internal/storage"
|
|
)
|
|
|
|
// TagVariants tags gitea-specific build variants.
|
|
//
|
|
// Files containing "-gogit-" in the filename are tagged with the "gogit"
|
|
// variant. These use a pure-Go Git backend rather than the default C Git
|
|
// library.
|
|
func TagVariants(assets []storage.Asset) {
|
|
for i := range assets {
|
|
lower := strings.ToLower(assets[i].Filename)
|
|
if strings.Contains(lower, "gogit") {
|
|
assets[i].Variants = append(assets[i].Variants, "gogit")
|
|
}
|
|
}
|
|
}
|