From 5b56b3e815d8f14b4aefe376d6e10bf8346152d9 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 20 Feb 2023 15:46:57 +0100 Subject: [PATCH] Include commit hash in snapshot version (#193) After this change the version for snapshot builds looks like `0.0.21-dev+65020f3`. This is valid semver per the regexp on https://semver.org/. --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6880dafe..0424f4ca 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -49,7 +49,7 @@ checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 snapshot: - name_template: '{{ incpatch .Version }}-devel' + name_template: '{{ incpatch .Version }}-dev+{{ .ShortCommit }}' changelog: sort: asc filters: