Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

go-bindata no matching versions for query "latest" #85

Open
toschdev opened this issue Jul 1, 2020 · 7 comments
Open

go-bindata no matching versions for query "latest" #85

toschdev opened this issue Jul 1, 2020 · 7 comments

Comments

@toschdev
Copy link

toschdev commented Jul 1, 2020

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.

@GrahamMcBain
Copy link

GrahamMcBain commented Jul 14, 2020

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!

@toschdev
Copy link
Author

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.

@GrahamMcBain
Copy link

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 !

@tac0turtle
Copy link
Member

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.

@SkyHustle
Copy link

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.

@GrahamMcBain
Copy link

@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

@MichalStachnik
Copy link

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.

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

No branches or pull requests

5 participants