[install] Pass version number to go get command

Related: https://github.com/junegunn/fzf.vim/issues/1150#issuecomment-717735149
pull/2233/head
Junegunn Choi 4 years ago
parent 3304f284a5
commit 254e9765fe
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -197,7 +197,7 @@ if [ -n "$binary_error" ]; then
export GOPATH="${TMPDIR:-/tmp}/fzf-gopath"
mkdir -p "$GOPATH"
fi
if go get -u github.com/junegunn/fzf; then
if go get -ldflags "-s -w -X main.version=$version -X main.revision=go-get" github.com/junegunn/fzf; then
echo "OK"
cp "$GOPATH/bin/fzf" "$fzf_base/bin/"
else

Loading…
Cancel
Save