mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-02-03 04:28:36 +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"
|
"github.com/junegunn/fzf/src/protector"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string
|
var version string = "0.24"
|
||||||
var revision string
|
var revision string = "devel"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if len(version) == 0 {
|
|
||||||
panic("Invalid build: version information missing")
|
|
||||||
}
|
|
||||||
protector.Protect()
|
protector.Protect()
|
||||||
fzf.Run(fzf.ParseOptions(), version, revision)
|
fzf.Run(fzf.ParseOptions(), version, revision)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user