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

Latest version of labstack echo breaks installation #268

Closed
llazzaro opened this issue Nov 16, 2016 · 3 comments
Closed

Latest version of labstack echo breaks installation #268

llazzaro opened this issue Nov 16, 2016 · 3 comments

Comments

@llazzaro
Copy link

Environment

Debian 8

Vuls

Hash : ef21376

Go

  • Go version: 1.7.1

Current Output

when I try to do a "make install" I got:

../go/src/github.com/kotakanbe/go-cve-dictionary/server/server.go:12:2: cannot find package "github.com/labstack/echo/engine/standard" in any of:
        /usr/local/go/src/github.com/labstack/echo/engine/standard (from $GOROOT)
        /home/leonardo/go/src/github.com/labstack/echo/engine/standard (from $GOPATH)
make: *** [install] Error 1

Addition Details

engine directory is missing in the master branch of the echo project. latest version that seems to be compatible is v2.2.0

Can you also please fill in each of the remaining sections.

Temporal fix

I clone the tag from the echo project on the go directory.

@kotakanbe
Copy link
Member

Thanks for reporting.
I will check it.

@llazzaro
Copy link
Author

I think this issue makes more sense on the go-cve-dictionary project.

@kotakanbe
Copy link
Member

I tried it but did not reproduce it.
Is there anyone else who has this problem?

Vuls/go-cve-dictionary uses glide ( https://github.com/Masterminds/glide ) for package management to avoid this kind of problem. I think that this problem does not occur with make install. (It happens with go get)

Glide gets the dependent package under the vendor directory with git clone, then git checkout to the version specified in glide.lock.
Looking at the output you pasted, you can see that the Go compiler has not been looking for a vendor directory.

Please try the following.

1. remove  /home/leonardo/go/src/github.com/labstack/echo/
2. make install again

or

go-cve-dictionary$ mv vendor /tmp
go-cve-dictionary$ glide install
go-cve-dictionary$ go install

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

2 participants