Skip to content

Commit

Permalink
Use a version string provided by the makefile / build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Mar 16, 2021
1 parent a12244a commit 92ccdab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion cmd/grit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 92ccdab

Please sign in to comment.