summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--VERSION1
-rw-r--r--main.go16
2 files changed, 0 insertions, 17 deletions
diff --git a/VERSION b/VERSION
deleted file mode 100644
index 30f6a9510..000000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-v0.1.72 \ No newline at end of file
diff --git a/main.go b/main.go
index b8b9af931..e8c092da2 100644
--- a/main.go
+++ b/main.go
@@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
- "io/ioutil"
"os"
"path/filepath"
"runtime"
@@ -26,23 +25,8 @@ func projectPath(path string) string {
return filepath.FromSlash(gopath + "/src/github.com/jesseduffield/lazygit/" + path)
}
-// when building the binary, `version` is set as a compile-time variable, along
-// with `date` and `commit`. If this program has been opened directly via go,
-// we will populate the `version` with VERSION in the lazygit root directory
-func fallbackVersion() string {
- path := projectPath("VERSION")
- byteVersion, err := ioutil.ReadFile(path)
- if err != nil {
- return "unversioned"
- }
- return string(byteVersion)
-}
-
func main() {
flag.Parse()
- if version == "unversioned" {
- version = fallbackVersion()
- }
if *versionFlag {
fmt.Printf("commit=%s, build date=%s, version=%s, os=%s, arch=%s\n", commit, date, version, runtime.GOOS, runtime.GOARCH)
os.Exit(0)