From d22be16a69f0059e987b247e0ea71ad5566db790 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 10 Mar 2026 11:31:53 -0600 Subject: [PATCH] fix isMetaAsset and source archive classification - Add -src.{tar.gz,tar.xz,zip} pattern to isMetaAsset (alongside _src.) - Set os=posix_2017, arch=* on source archives (no-binary-asset releases) instead of leaving them empty. These are shell scripts/vim plugins that work on any POSIX system. - Remove "source" Extra tag from source archives (os/arch tells the story) --- cmd/webicached/main.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/webicached/main.go b/cmd/webicached/main.go index 4d39f72..ac3f908 100644 --- a/cmd/webicached/main.go +++ b/cmd/webicached/main.go @@ -504,17 +504,19 @@ func classifyGitHub(pkg string, conf *installerconf.Conf, d *rawcache.Dir) ([]st }) } - // Source tarballs for packages with no binary assets. + // Source archives for packages with no binary assets. + // These are installable on any POSIX system (shell scripts, etc.). if len(rel.Assets) == 0 { if rel.TarballURL != "" { assets = append(assets, storage.Asset{ Filename: rel.TagName + ".tar.gz", Version: version, Channel: channel, + OS: "posix_2017", + Arch: "*", Format: ".tar.gz", Download: rel.TarballURL, Date: date, - Extra: "source", }) } if rel.ZipballURL != "" { @@ -522,10 +524,11 @@ func classifyGitHub(pkg string, conf *installerconf.Conf, d *rawcache.Dir) ([]st Filename: rel.TagName + ".zip", Version: version, Channel: channel, + OS: "posix_2017", + Arch: "*", Format: ".zip", Download: rel.ZipballURL, Date: date, - Extra: "source", }) } } @@ -1345,6 +1348,7 @@ func isMetaAsset(name string) bool { "checksums.txt", "sha256sums", "sha512sums", ".sbom", ".spdx", ".json.sig", ".sigstore", "_src.tar.gz", "_src.tar.xz", "_src.zip", + "-src.tar.gz", "-src.tar.xz", "-src.zip", ".d.ts", ".pub", } { if strings.HasSuffix(lower, suffix) {