From 5f66786ef1e65074daabb33d78a09d1f94576f15 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 26 Aug 2023 20:00:16 +0900 Subject: [PATCH] [install] Replace go get with go install Fix #3365 --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index fb33c74529b..5ac191b042f 100755 --- a/install +++ b/install @@ -196,12 +196,12 @@ if [ -n "$binary_error" ]; then echo " - $binary_error !!!" fi if command -v go > /dev/null; then - echo -n "Building binary (go get -u github.com/junegunn/fzf) ... " + echo -n "Building binary (go install github.com/junegunn/fzf) ... " if [ -z "${GOPATH-}" ]; then export GOPATH="${TMPDIR:-/tmp}/fzf-gopath" mkdir -p "$GOPATH" fi - if go get -ldflags "-s -w -X main.version=$version -X main.revision=go-get" github.com/junegunn/fzf; then + if go install -ldflags "-s -w -X main.version=$version -X main.revision=go-install" github.com/junegunn/fzf; then echo "OK" cp "$GOPATH/bin/fzf" "$fzf_base/bin/" else