Skip to content
Myr

Assign default number version (without patch version)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

So that you can still build and use fzf even when the precise version number is not injected via -ldflags.

authored by Junegunn Choi · committed by Junegunn Choi · parent 569be4c · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:main.go+2 added-5 removed
3 unmodified lines
4 "github.com/junegunn/fzf/src"5 "github.com/junegunn/fzf/src/protector"6)78var version string9var revision string8var version string = "0.24"9var revision string = "devel"1011func main() {12 if len(version) == 0 {13 panic("Invalid build: version information missing")14 }12 protector.Protect()13 fzf.Run(fzf.ParseOptions(), version, revision)14}