minor fixes to autobuild

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-14 09:36:52 -07:00
parent eeba0d7c0d
commit 236541d379
1 changed files with 4 additions and 4 deletions

View File

@ -88,12 +88,12 @@ func build(tag string) *bool {
shell.Run("git checkout v" + tag) shell.Run("git checkout v" + tag)
gitref := shell.Run("git rev-list -1 HEAD") gitref := shell.Run("git rev-list -1 HEAD")
tagref := shell.Run("cat .git/refs/tags/v" + tag) // what is the right way? tagref := shell.Run("git rev-list -1 v" + tag)
if (gitref != tagref) { if (gitref != tagref) {
log.Println("\tJESUS HOW TO DO THIS CORRECTLY?", gitref, "ne", tagref) log.Println("\tWHAT WENT WRONG?", gitref, "ne", tagref)
// os.Exit(-1) b = false
// return nil return &b
} }
// setup the files that will end up in the binary // setup the files that will end up in the binary