From 13a4a8df28ff39210974fe9c7a30c651f01476f3 Mon Sep 17 00:00:00 2001 From: rsteube Date: Thu, 24 Oct 2024 21:24:36 +0200 Subject: [PATCH] include commit in snapshot --- cmd/carapace/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/carapace/main.go b/cmd/carapace/main.go index fdd83d1bdc..5b281ab13e 100644 --- a/cmd/carapace/main.go +++ b/cmd/carapace/main.go @@ -7,12 +7,12 @@ import ( "github.com/carapace-sh/carapace-bin/cmd/carapace/cmd" ) -var date string +var commit, date string var version = "develop" func main() { if strings.HasSuffix(version, "-next") { - version += fmt.Sprintf(" (%v)", date) + version += fmt.Sprintf(" (%v) [%v]", date, commit) } cmd.Execute(version) }