summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-29 01:36:55 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-29 01:38:34 +0900
commitb5e0e29ec6a149fa948c0399af34572d450d3dda (patch)
tree9af511cfb9ee9cafb2857a659f3f153ae11569b5 /main.go
parent569be4c6c95cd7993f2a46df857e22cd9d62f50a (diff)
Assign default number version (without patch version)
So that you can still build and use fzf even when the precise version number is not injected via -ldflags.
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.go b/main.go
index bdd733c6..c8a9f8fe 100644
--- a/main.go
+++ b/main.go
@@ -5,13 +5,10 @@ import (
"github.com/junegunn/fzf/src/protector"
)
-var version string
-var revision string
+var version string = "0.24"
+var revision string = "devel"
func main() {
- if len(version) == 0 {
- panic("Invalid build: version information missing")
- }
protector.Protect()
fzf.Run(fzf.ParseOptions(), version, revision)
}