From ca085191abc86af511cde75d7021164b8274a878 Mon Sep 17 00:00:00 2001 From: Shahbaz Nazir Date: Thu, 31 Aug 2023 15:34:36 +0200 Subject: [PATCH 1/3] fix: go-release sort tags on create date when multiple tags on the same commit --- .goreleaser.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a8754437..0e8aa2de 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -6,6 +6,14 @@ before: - apt update && apt install musl-dev=1.2.2-1 env: - CGO_ENABLED=1 + +git: + # What should be used to sort tags when gathering the current and previous + # tags if there are more than one tag in the same commit. + # + # Default: '-version:refname' + tag_sort: -version:creatordate + builds: - id: archwayd-linux-amd64 main: ./cmd/archwayd From 2cb8814a528cd0871e265a8afc4418aad86694a9 Mon Sep 17 00:00:00 2001 From: Shahbaz Nazir Date: Thu, 31 Aug 2023 15:35:33 +0200 Subject: [PATCH 2/3] update docs --- .goreleaser.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0e8aa2de..b1e67f98 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -12,6 +12,7 @@ git: # tags if there are more than one tag in the same commit. # # Default: '-version:refname' + # Source: https://goreleaser.com/customization/git/ tag_sort: -version:creatordate builds: From b9cf7bfae0db1a4857411e4663cb4f1072e30495 Mon Sep 17 00:00:00 2001 From: Shahbaz Nazir Date: Thu, 31 Aug 2023 15:40:57 +0200 Subject: [PATCH 3/3] add changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3500b18c..7b990715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,12 @@ Contains bug fixes. Contains all the PRs that improved the code without changing the behaviours. --> +## [main] + +### Fixed + +- [#441](https://github.com/archway-network/archway/pull/441) - go-releaser must order tags with create date, when there are multiple tags on the same commit + ## [v4.0.1] ### Fixed