-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unable to install echo #1374
Comments
Check that path, I installed it yesterday and i just imported it like this: import "github.com/labstack/echo" make sure all dependencies are installed. |
Having the same issue here. @dmatuteb solution doesn't work. Getting the package |
I used
and its working fine. But the moment when I include this line
even though the code is compiling and working. This is my entire code,
|
@shanmugharajk I had the same issue and found no solution. Changed my package to a go module and added |
Echo v4 is suppose to work with Go modules like @ShrewdSpirit mentioned. We still need to update the docs. |
I have this same issue. I'm not clear on what the solution is from this thread.
Despite this error, it did seem to download the source to C:\dev\go\src\github.com\labstack\echo Should we use |
Figured it out. As initially mentioned by @ShrewdSpirit, your code also needs to be in a module. You can read about it here: Note:
So, you can still follow the echo README example code:
|
* Improve installation section to avoid errors like `https://github.com/labstack/echo/issues/1374` Co-authored-by: Roland Lammel <[email protected]>
Issue Description
My go version
go version go1.12.7 darwin/amd641
I installed echo using
go get gopkg.in/labstack/echo.v4
Expected behaviour
Its should build.
Actual behaviour
Unable to build the project.
Steps to reproduce
Install echo
go get gopkg.in/labstack/echo.v4
as said in the line https://godoc.org/gopkg.in/labstack/echo.v4build with the following code
Got the following error
main.go:6:2: cannot find package "github.com/labstack/echo/v4" in any of:
/usr/local/go/src/github.com/labstack/echo/v4 (from $GOROOT)
/Users/.../Code/.../Go/src/github.com/labstack/echo/v4 (from $GOPATH)
main.go:7:2: cannot find package "github.com/labstack/echo/v4/middleware" in any of:
/usr/local/go/src/github.com/labstack/echo/v4/middleware (from $GOROOT)
/Users/.../Code/.../Go/src/github.com/labstack/echo/v4/middleware (from $GOPATH)
The text was updated successfully, but these errors were encountered: