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.
pull/2233/head
Junegunn Choi 4 years ago
parent 569be4c6c9
commit b5e0e29ec6
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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)
}

Loading…
Cancel
Save