From 810c127608a200318cfbd4d8247d0a6948f9443c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Fri, 10 Sep 2021 15:24:46 +0100 Subject: [PATCH] goreleaser: Fix version string replacement - The `Version` variable casing changed in https://github.com/github/ghcs/commit/6a4950cf7ae02afc36cee06c26c232bc3fb71347#diff-d897a31624bae4fe935e8dc2243f41626c68639be6643535297c06935277ffb4, so we need to update our version setting code. - Otherwise, for `ghcs 0.11.0`, `ghcs --version` would print "DEV". --- cmd/ghcs/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ghcs/main.go b/cmd/ghcs/main.go index 3a692d443..651d98c1d 100644 --- a/cmd/ghcs/main.go +++ b/cmd/ghcs/main.go @@ -21,7 +21,7 @@ func main() { } } -var version = "DEV" +var version = "DEV" // Replaced in the release build process (by GoReleaser or Homebrew) by the git tag version number. var rootCmd = newRootCmd()