Skip to content
Myr

[install] Replace go get with go install

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

Fix #3365

authored by Junegunn Choi · committed by Junegunn Choi · parent 3a96585 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:install+2 added-2 removed
194 unmodified lines
195 else196 echo " - $binary_error !!!"197 fi198 if command -v go > /dev/null; then199 echo -n "Building binary (go get -u github.com/junegunn/fzf) ... "199 echo -n "Building binary (go install github.com/junegunn/fzf) ... "200 if [ -z "${GOPATH-}" ]; then201 export GOPATH="${TMPDIR:-/tmp}/fzf-gopath"202 mkdir -p "$GOPATH"203 fi204 if go get -ldflags "-s -w -X main.version=$version -X main.revision=go-get" github.com/junegunn/fzf; then204 if go install -ldflags "-s -w -X main.version=$version -X main.revision=go-install" github.com/junegunn/fzf; then205 echo "OK"206 cp "$GOPATH/bin/fzf" "$fzf_base/bin/"207 else208 echo "Failed to build binary. Installation failed."
172 unmodified lines