From 92ccdabde5292c03315dc1594b09edf636b245e0 Mon Sep 17 00:00:00 2001 From: James Harris Date: Wed, 17 Mar 2021 09:45:52 +1000 Subject: [PATCH] Use a version string provided by the makefile / build process. --- CHANGELOG.md | 4 ++++ cmd/grit/main.go | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be62fc5..62f3cfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.7.1 (2021-03-17) + +- **[IMPROVED]** Automatically populate version string during build process + ## 0.7.0 (2021-03-16) - **[FIX]** Fix issue that prevented cloning empty repositories diff --git a/cmd/grit/main.go b/cmd/grit/main.go index e3c0f10..a7c50fc 100644 --- a/cmd/grit/main.go +++ b/cmd/grit/main.go @@ -17,8 +17,11 @@ import ( "github.com/urfave/cli" ) +// Populated by build process. +var version string + // VERSION is the current Grit version. -var VERSION = semver.MustParse("0.6.10") +var VERSION = semver.MustParse(version) func main() { if isatty.IsTerminal(os.Stdout.Fd()) {