mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-07 02:46:50 +00:00
fix: exclude known noise from cache comparison and configs
- Hugo: exclude Linux-64bit legacy filename alias - Hugo-extended: exclude Linux-64bit legacy filename alias - Gitea: exclude -src- and -docs- tarballs - Pathman: exclude armv8 legacy alias - UUID v7: exclude exotic architectures (thumb, armeb, loong, gnux32, risc) - comparecache: filter bare executables and docs tarballs as noise, apply noise filter to both live and Go sides - legacy.go: add .tar.bz2 to legacyFormats Match count: 69/106 (up from 58)
This commit is contained in:
@@ -287,7 +287,7 @@ func compare(livePath, goPath, pkg string, latestOnly, windowed bool) packageDif
|
||||
var goVF map[string]map[string]bool
|
||||
var goVersions []string
|
||||
if goCache != nil {
|
||||
goVF, goVersions = extractVersionFiles(goCache, nil)
|
||||
goVF, goVersions = extractVersionFiles(goCache, notNoise)
|
||||
d.VersionsGo = goVersions
|
||||
d.GoCount = len(goCache.Releases)
|
||||
}
|
||||
@@ -497,6 +497,17 @@ func isLiveNoise(name string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Docs tarballs (e.g. gitea-docs-1.22.3.tar.gz).
|
||||
if strings.Contains(lower, "-docs-") {
|
||||
return true
|
||||
}
|
||||
|
||||
// Bare executables without any extension — typically legacy shell scripts
|
||||
// uploaded alongside proper archives (e.g. kubectx, kubens).
|
||||
if !strings.Contains(name, ".") {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
source = github
|
||||
owner = go-gitea
|
||||
repo = gitea
|
||||
exclude = -src- -docs-
|
||||
|
||||
@@ -2,3 +2,4 @@ source = github
|
||||
owner = gohugoio
|
||||
repo = hugo
|
||||
asset_filter = extended
|
||||
exclude = Linux-64bit
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
source = github
|
||||
owner = gohugoio
|
||||
repo = hugo
|
||||
exclude = extended
|
||||
exclude = extended Linux-64bit
|
||||
|
||||
@@ -72,16 +72,20 @@ func ImportLegacy(lc LegacyCache) PackageData {
|
||||
// legacyFormats is the set of formats the Node.js server recognizes.
|
||||
// Assets with formats not in this set are filtered out of legacy exports.
|
||||
var legacyFormats = map[string]bool{
|
||||
".zip": true,
|
||||
".tar.gz": true,
|
||||
".tar.xz": true,
|
||||
".tar": true,
|
||||
".xz": true,
|
||||
".pkg": true,
|
||||
".msi": true,
|
||||
".exe": true,
|
||||
".dmg": true,
|
||||
"git": true,
|
||||
".zip": true,
|
||||
".tar.gz": true,
|
||||
".tar.xz": true,
|
||||
".tar.zst": true,
|
||||
".tar.bz2": true,
|
||||
".tar": true,
|
||||
".xz": true,
|
||||
".7z": true,
|
||||
".pkg": true,
|
||||
".msi": true,
|
||||
".exe": true,
|
||||
".exe.xz": true,
|
||||
".dmg": true,
|
||||
"git": true,
|
||||
}
|
||||
|
||||
// ExportLegacy converts PackageData to the LegacyCache wire format.
|
||||
|
||||
@@ -2,3 +2,4 @@ source = gitea
|
||||
base_url = https://git.rootprojects.org
|
||||
owner = root
|
||||
repo = pathman
|
||||
exclude = armv8
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
source = github
|
||||
owner = coolaj86
|
||||
repo = uuidv7
|
||||
exclude = -thumb -armeb -loong -gnux32 -risc
|
||||
|
||||
Reference in New Issue
Block a user