Failed to build binary when running ./install on Cygwin
AnabasisXu opened this issue · 1 comments
AnabasisXu commented
OS: windows 10
fzf.exe binary works fine with cmd, but not Cygwin or Git Bash:
fzf_setup_using_fzf:5: permission denied: fzf
fzf_setup_using_fzf:10: permission denied: fzf
So I tried to install it on Cygwin by running ./install:
Administrator in cml\awk\fzf-0.54.2 via 🐹 v1.19.1
❯ ./install
Downloading bin/fzf ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 1722k 100 1722k 0 0 442k 0 0:00:03 0:00:03 --:--:-- 813k
unzip: cannot find either /tmp/fzf.zip or /tmp/fzf.zip.zip.
--2024-07-26 22:35:19-- https://github.com/junegunn/fzf/releases/download/v0.54.2/fzf-0.54.2-windows_amd64.zip
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/13807606/b1074ec8-4f88-43c2-8362-9eca06ec778d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240726%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240726T143516Z&X-Amz-Expires=300&X-Amz-Signature=251af051de748962e0045acb4b147daa9411cf7d5c009fe391724b03a8257cf1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=13807606&response-content-disposition=attachment%3B%20filename%3Dfzf-0.54.2-windows_amd64.zip&response-content-type=application%2Foctet-stream [following]
--2024-07-26 22:35:21-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/13807606/b1074ec8-4f88-43c2-8362-9eca06ec778d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240726%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240726T143516Z&X-Amz-Expires=300&X-Amz-Signature=251af051de748962e0045acb4b147daa9411cf7d5c009fe391724b03a8257cf1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=13807606&response-content-disposition=attachment%3B%20filename%3Dfzf-0.54.2-windows_amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 198.18.2.118
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|198.18.2.118|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1763777 (1.7M) [application/octet-stream]
Saving to: ‘/tmp/fzf.zip’
/tmp/fzf.zip 100%[==================================================================================>] 1.68M 620KB/s in 2.8s
2024-07-26 22:35:24 (620 KB/s) - ‘/tmp/fzf.zip’ saved [1763777/1763777]
unzip: cannot find either /tmp/fzf.zip or /tmp/fzf.zip.zip.
- Failed to download with curl and wget !!!
Building binary (go install github.com/junegunn/fzf) ... # github.com/junegunn/fzf/src/util
src\util\chars.go:196:16: undefined: unsafe.String
src\util\chars.go:196:30: undefined: unsafe.SliceData
note: module requires Go 1.20
Failed to build binary. Installation failed.