From 9778c843685743e2c8f15af4b1c10d8eac4fe0dc Mon Sep 17 00:00:00 2001 From: Keming Date: Mon, 17 Feb 2025 22:14:49 +0800 Subject: [PATCH] chore: sort git tag by date when multiple tags bind to one commit (#1984) Signed-off-by: Keming --- .goreleaser.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 66c25efd0..a460377a9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,6 +1,9 @@ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com version: 2 +git: + # if there are more than one tag in the same commit. + tag_sort: -version:creatordate before: hooks: - go mod tidy