Skip to content
Myr

[install] Pass version number to go get command

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 3304f28 · Browse files · 1 file+1 added−1 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#issuecomment-717735149

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:install+1 added-1 removed
195 unmodified lines
196 if [ -z "${GOPATH-}" ]; then197 export GOPATH="${TMPDIR:-/tmp}/fzf-gopath"198 mkdir -p "$GOPATH"199 fi200 if go get -u github.com/junegunn/fzf; then200 if go get -ldflags "-s -w -X main.version=$version -X main.revision=go-get" github.com/junegunn/fzf; then201 echo "OK"202 cp "$GOPATH/bin/fzf" "$fzf_base/bin/"203 else204 echo "Failed to build binary. Installation failed."
177 unmodified lines