From 3965e993f58275508af3528edef6609948f694d5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 10 Mar 2026 10:10:07 -0600 Subject: [PATCH] fix(classify): treat .tgz as .tar.gz, not as meta asset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .tgz is a legitimate archive format (used by ollama darwin releases). Remove it from the meta-asset filter and add a .tgz → .tar.gz mapping in detectFormat. --- cmd/classify/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/classify/main.go b/cmd/classify/main.go index 27a3432..e3c3517 100644 --- a/cmd/classify/main.go +++ b/cmd/classify/main.go @@ -1249,7 +1249,6 @@ func isMetaAsset(name string) bool { ".sbom", ".spdx", ".json.sig", ".sigstore", "_src.tar.gz", "_src.tar.xz", "_src.zip", ".d.ts", // TypeScript definitions - ".tgz", // npm packages (not binary distributables) ".pub", // cosign/SSH public keys } { if strings.HasSuffix(lower, suffix) { @@ -1285,6 +1284,10 @@ func detectFormat(name string) string { return ext } } + // .tgz is a common alias for .tar.gz (used by ollama, npm, etc.) + if strings.HasSuffix(lower, ".tgz") { + return ".tar.gz" + } ext := filepath.Ext(lower) return ext // includes leading dot, or "" if none }