mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-02-02 20:18:31 +00:00
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.
This commit is contained in:
parent
569be4c6c9
commit
b5e0e29ec6
7
main.go
7
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user