Version
sbi version: main @ d9404ec
Related: version-aware tag sort fixed in #68 / #66; dedup path was not updated
Go: 1.26.5
What happened?
sortTagsNewestFirst / versionPrefix correctly treat optional v/V prefixes. tagSpecificity (used by DeduplicateByDigest) only grants the numeric bonus when the tag starts with a digit.
Proven scores:
v10.0 → 2005
9.0 → 12003 (wins incorrectly)
If two tags share a digest, bare 9.0 can be chosen as the primary recommendation over v10.0.
Expected: Optional v/V prefix (when followed by a digit) is treated as numeric, consistent with version-aware sort.
Steps to reproduce
- Compare
tagSpecificity(repo:v10.0) vs tagSpecificity(repo:9.0).
- Or run
DeduplicateByDigest with both tags on the same digest; observe primary name.
Version
sbi version: main @ d9404ec
Related: version-aware tag sort fixed in #68 / #66; dedup path was not updated
Go: 1.26.5
What happened?
sortTagsNewestFirst/versionPrefixcorrectly treat optionalv/Vprefixes.tagSpecificity(used byDeduplicateByDigest) only grants the numeric bonus when the tag starts with a digit.Proven scores:
v10.0→ 20059.0→ 12003 (wins incorrectly)If two tags share a digest, bare
9.0can be chosen as the primary recommendation overv10.0.Expected: Optional
v/Vprefix (when followed by a digit) is treated as numeric, consistent with version-aware sort.Steps to reproduce
tagSpecificity(repo:v10.0)vstagSpecificity(repo:9.0).DeduplicateByDigestwith both tags on the same digest; observe primary name.