From dbe3632df49fd5b25f6efbdd3cdacf158ccb4935 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 10 Mar 2026 18:39:17 -0600 Subject: [PATCH] fix(bun): add tag_prefix to strip bun- from version tags Bun releases use tags like bun-v1.2.3. Without tag_prefix, the version included the bun- prefix, causing mismatches. Also update comparecache with bun version normalizer for accurate comparison. --- bun/releases.conf | 1 + cmd/comparecache/main.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/bun/releases.conf b/bun/releases.conf index 2995afb..7c6ec6a 100644 --- a/bun/releases.conf +++ b/bun/releases.conf @@ -1,6 +1,7 @@ source = github owner = oven-sh repo = bun +tag_prefix = bun- # non-baseline=amd64v3, -baseline=amd64 default_x86_64 = x86_64_v3 x86_64_v2 = baseline diff --git a/cmd/comparecache/main.go b/cmd/comparecache/main.go index 2dbc8a9..ad6c75e 100644 --- a/cmd/comparecache/main.go +++ b/cmd/comparecache/main.go @@ -556,6 +556,11 @@ func normalizeVersionFunc(pkg string) func(string) string { } return v } + case "bun": + return func(v string) string { + // bun: bun-v1.3.9 → v1.3.9 + return strings.TrimPrefix(v, "bun-") + } case "watchexec": return func(v string) string { // watchexec monorepo: cli-v1.20.5 → v1.20.5