Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go-bindata command not working #83

Open
iluvsoup opened this issue Dec 21, 2022 · 3 comments
Open

go-bindata command not working #83

iluvsoup opened this issue Dec 21, 2022 · 3 comments

Comments

@iluvsoup
Copy link

When running go get -u github.com/go-bindata/go-bindata/... or go install -a -v github.com/go-bindata/go-bindata/...@latest (as suggested by another user), and then try to run go-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

@nzin
Copy link

nzin commented Jan 10, 2023

I have the same issue, I switch back to go 1.18 for now

@heybran
Copy link

heybran commented Apr 14, 2023

Same issue, any other solutions than changing golang version?

@zond
Copy link

zond commented May 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants