diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-29 01:36:55 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-29 01:38:34 +0900 |
commit | b5e0e29ec6a149fa948c0399af34572d450d3dda (patch) | |
tree | 9af511cfb9ee9cafb2857a659f3f153ae11569b5 | |
parent | 569be4c6c95cd7993f2a46df857e22cd9d62f50a (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.
-rw-r--r-- | main.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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) } |