mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
3304f284a5
So that the package maintainers would immediately know that the build is incorrect. But is there a way to make build simply fail? Related: https://github.com/junegunn/fzf.vim/issues/1150
18 lines
304 B
Go
18 lines
304 B
Go
package main
|
|
|
|
import (
|
|
"github.com/junegunn/fzf/src"
|
|
"github.com/junegunn/fzf/src/protector"
|
|
)
|
|
|
|
var version string
|
|
var revision string
|
|
|
|
func main() {
|
|
if len(version) == 0 {
|
|
panic("Invalid build: version information missing")
|
|
}
|
|
protector.Protect()
|
|
fzf.Run(fzf.ParseOptions(), version, revision)
|
|
}
|