[install] Pass version number to go get command

Related: https://github.com/junegunn/fzf.vim/issues/1150#issuecomment-717735149
This commit is contained in:
Junegunn Choi 2020-10-28 15:56:05 +09:00
parent 3304f284a5
commit 254e9765fe
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 1 additions and 1 deletions

View File

@ -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