From 847b8022b2dcbeea4b06a8e36bb230f3a737add0 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Fri, 11 May 2018 00:27:21 -0700 Subject: [PATCH] goreleaser now sets version during building --- build/build_steps.txt | 7 ++----- main.go | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/build/build_steps.txt b/build/build_steps.txt index c5f83cd..a0ed088 100644 --- a/build/build_steps.txt +++ b/build/build_steps.txt @@ -1,10 +1,7 @@ make sure gotop builds and runs -update version number in 'main.go' and 'scripts/download.sh' -commit changes -tag commit with latest version number +tag commit with version number export GitHub token in shell run `sudo dockerd` -run `goreleaser` -run `rm -r dist` +run `goreleaser --rm-dist` run `git push` update AUR package diff --git a/main.go b/main.go index 35ef898..fd8ff02 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( "github.com/docopt/docopt-go" ) -const VERSION = "1.2.15" +var version = "updated by goreleaser" var ( termResized = make(chan bool, 1) @@ -65,7 +65,7 @@ Colorschemes: monokai ` - args, _ := docopt.ParseArgs(usage, os.Args[1:], VERSION) + args, _ := docopt.ParseArgs(usage, os.Args[1:], version) if val, _ := args["--color"]; val != nil { handleColorscheme(val.(string))