scaffold icon indicating copy to clipboard operation
scaffold copied to clipboard

go-bindata no matching versions for query "latest"

Open toschdev opened this issue 5 years ago • 7 comments

Trying to install scaffold from scratch did throw the following error:

$ make
go: finding github.com/go-bindata/go-bindata/... latest
go get github.com/go-bindata/go-bindata/...: no matching versions for query "latest"
make: *** [tools] Error 1

Installing manually go get github.com/go-bindata/go-bindata did solve this.

toschdev avatar Jul 01 '20 19:07 toschdev

I'm running into the same problem. I have the latest version of go go version go1.14.4 darwin/amd64

Here is what I'm getting:

$ make
go: found github.com/go-bindata/go-bindata/... in github.com/go-bindata/go-bindata v3.1.2+incompatible
/bin/sh: go-bindata: command not found
make: *** [generate] Error 127

After installing manually go get github.com/go-bindata/go-bindata I still get the following error:

/bin/sh: go-bindata: command not found
make: *** [generate] Error 127

It looks like bindata is on version 3.13, perhaps this has something to do with the v3.1.2+incompatible part of the error?

I'm working on a tutorial for an interview, any help is appreciated!

GrahamMcBain avatar Jul 14 '20 18:07 GrahamMcBain

Maybe did you try go get -u github.com/go-bindata/go-bindata?

It is possible that you already have a previous - not compatible - version of go-bindata.

toschdev avatar Jul 14 '20 22:07 toschdev

Turns out I had issues with my GOPATH and just got it figured out.

I had tried go get -u github.com/go-bindata/go-bindatabut alas it was merely my (not as bad as I thought) Path.

Thank you for the response @Tosch110 !

GrahamMcBain avatar Jul 14 '20 23:07 GrahamMcBain

Hey thanks for everyone checking out this repo. The team at AiB has been working on a scaffold tool that enables many more features. you can find it here: https://github.com/tendermint/starport/. I would recommend using it and opening issues with anything you run into.

tac0turtle avatar Jul 15 '20 07:07 tac0turtle

I had a similar issue, not the same issue, but then oddly it turned into this same issue. I’m running macOS Catalina 10.15.5

To troubleshoot first run echo $PATH | tr ":" “\n” in your command line. You should have this Path in the output $HOME/go/bin or Users/Your_Computer_Name/go/bin It is the path to the go-binddata and scaffold executables you are trying to use.

After installing go version 1.14.6, cloning the scaffold repository, and running make I got this Error: bin/sh: go-bindata: command not found make: *** [generate] Error 127

I fixed this by adding the proper path to the go-binddata and scaffold executables like so:
export GOPATH="$HOME/go” PATH="$PATH:$GOPATH/bin”

If you’re using Bash as your shell, as I am, don’t forget to add the above to your .bash_profile or else every time you open a new session you’ll have to manually input that in.

SkyHustle avatar Jul 18 '20 01:07 SkyHustle

@Dmitry1007 this is great thank you!

My friend who used to teach go told me that every go workshop starts with fixing everyone's path lol

GrahamMcBain avatar Jul 18 '20 03:07 GrahamMcBain

I have go version go1.15 darwin/amd64

With .bash_profile containing:

export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin

And am getting the following after running make install: /bin/sh: go-bindata: command not found make: *** [generate] Error 127

I have also tried go get -u github.com/go-bindata/go-bindata but got the same results.

MichalStachnik avatar Sep 03 '20 00:09 MichalStachnik