Skip to content
Myr

Panic when fzf was built without version information

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

So that the package maintainers would immediately know that the build is incorrect. But is there a way to make build simply fail?

authored by Junegunn Choi · committed by Junegunn Choi · parent 0d5f862 · Browse files · 2 files+7 added−13 removed
This commit

State

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

Trailers

  • Related: https://github.com/junegunn/fzf.vim/issues/1150

Diff stats

2 files+7 added−13 removed

  • other:+7 added−13 removed

2 files+7 added−13 removed

modified:BUILD.md+4 added-13 removed
modified:main.go+3 added
7 unmodified lines
8var version string9var revision string1011func main() {12 if len(version) == 0 {13 panic("Invalid build: version information missing")14 }15 protector.Protect()16 fzf.Run(fzf.ParseOptions(), version, revision)17}