summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.go b/main.go
index e4944e7..e2b4249 100644
--- a/main.go
+++ b/main.go
@@ -74,32 +74,32 @@ func getGuiVersion() (string, error) {
if tmp == nil {
return "", errors.New("compiled without go module support")
}
- fmt.Println("mod.Path = ", tmp.Path)
- fmt.Println("mod.Main.Path = ", tmp.Main.Path)
- fmt.Println("mod.Main.Version = ", tmp.Main.Version)
- fmt.Println("mod.Main.Sum = ", tmp.Main.Sum)
+ // fmt.Println("mod.Path = ", tmp.Path)
+ // fmt.Println("mod.Main.Path = ", tmp.Main.Path)
+ // fmt.Println("mod.Main.Version = ", tmp.Main.Version)
+ // fmt.Println("mod.Main.Sum = ", tmp.Main.Sum)
for _, value := range tmp.Deps {
if value.Path == "go.wit.com/gui" {
found = value.Version
}
- fmt.Println("\tmod.Path = ", value.Path)
- fmt.Println("\tmod.Version = ", value.Version)
+ // fmt.Println("\tmod.Path = ", value.Path)
+ // fmt.Println("\tmod.Version = ", value.Version)
}
if found != "" {
- log.Println("GUI build version:", found)
+ // log.Println("GUI build version:", found)
return found, nil
}
if GUIVERSION != "" {
- log.Println("GUI build ldflag:", GUIVERSION)
+ // log.Println("GUI build ldflag:", GUIVERSION)
return GUIVERSION, nil
}
if os.Getenv("GUIVERSION") != "" {
found = os.Getenv("GUIVERSION") + "-dirty"
- log.Println("GUI build $GUIVERSION", found)
+ // log.Println("GUI build $GUIVERSION", found)
return found, nil
}
found = "pre-v1-GO111"
- log.Println("GUI build version:", found)
+ // log.Println("GUI build version:", found)
return found, errors.New("GO111 developer build")
}