goreleaser: Fix version string replacement

- The `Version` variable casing changed in 6a4950cf7a (diff-d897a31624bae4fe935e8dc2243f41626c68639be6643535297c06935277ffb4), so we need to update our version setting code.
- Otherwise, for `ghcs 0.11.0`, `ghcs --version` would print "DEV".
This commit is contained in:
Issy Long 2021-09-10 15:24:46 +01:00
parent 219a22ef12
commit 810c127608

View file

@ -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()