Skip to content

Commit

Permalink
Assign default number version (without patch version)
Browse files Browse the repository at this point in the history
So that you can still build and use fzf even when the precise version
number is not injected via -ldflags.
  • Loading branch information
junegunn committed Oct 28, 2020
1 parent 569be4c commit b5e0e29
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit b5e0e29

Please sign in to comment.