Closed miki725 closed 2 weeks ago
so far annotated tags have a preference over lightweight tags as they have a concrete ordering without doing any tag name comparisons as tag formats are wildly different with semver, dates, etc so nothing concrete to sort by. if there are no annotated tags then it falls back to regular tags
CHANGELOG.md
if necessaryIssue
fixes https://github.com/crashappsec/chalk/issues/345
Description
If repo is checked out incorrectly locally, a tag can be lightweight but annotated in origin. To guarantee chalk sees up-to-date tags, chalk refetches lightweight tags to ensure it reports correct metadata about the "latest" tag.
This was noticed via checkout github action which if triggered from a tag build it looses any tag annotations.
Testing