diff --git a/Makefile b/Makefile index 61c5e0f..05ac9af 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ $(INSTALL_DIR): build: $(BIN_DIR) @echo === BUILDING === - ${GO} build -v -o $(BIN_DIR)/$(BIN_NAME) + ${GO} build -ldflags "-X main.VERSION=${VERSION}" -v -o $(BIN_DIR)/$(BIN_NAME) install: build $(INSTALL_DIR) @echo === INSTALLING === diff --git a/gomu.go b/gomu.go index de9357b..a4d3cb4 100644 --- a/gomu.go +++ b/gomu.go @@ -7,7 +7,7 @@ import ( "github.com/ztrue/tracerr" ) -const VERSION = "v1.5.5" +var VERSION = "N/A" var gomu *Gomu diff --git a/utils.go b/utils.go index 17858d6..e3d930c 100644 --- a/utils.go +++ b/utils.go @@ -53,7 +53,6 @@ func debugLog(val ...interface{}) { log.Println(val...) } - // Formats duration to my desired output mm:ss func fmtDuration(input time.Duration) string {