Open iluvsoup opened 1 year ago
I have the same issue, I switch back to go 1.18 for now
Same issue, any other solutions than changing golang version?
Have you checked if the command created a binary file in your $PATH?
When I run go env
I get, among other things:
GOPATH="/home/zond/go"
This means that when I ran go install github.com/go-bindata/go-bindata/...@latest
I got a file /home/zond/go/bin/go-bindata
.
Making sure that the directory go installs files in is in your $PATH is unfortunately not something the go installation handles - you have to do that yourself in your environment configuration files.
Edit: I now realize that maybe the error message you got was from linux finding the file but not understanding it.
What does file $(which go-bindata)
return for you? I get:
zond@rlyeh:~$ file $(which go-bindata)
/home/zond/go/bin/go-bindata: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=nkYjXIaKC79arNKXbqVq/n2qxHicjX8BBGgQ4UrpA/Npu_kTjfRSBJpn38QL8u/a_GNCc30afJmXOhrOlac, with debug_info, not stripped
When running
go get -u github.com/go-bindata/go-bindata/...
orgo install -a -v github.com/go-bindata/go-bindata/...@latest
(as suggested by another user), and then try to rungo-bindata
, I get: "'go-bindata' is not recognized as an internal or external command, operable program or batch file."Strange thing is that I've had it work once but I can't remember what I did
Operating system: Windows 10 (but I experience this problem on Linux too) Go version:
go1.19.4 windows/amd64