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

Can not import /v4 with glide package manager #1321

Closed
ilzheev opened this issue Apr 18, 2019 · 2 comments
Closed

Can not import /v4 with glide package manager #1321

ilzheev opened this issue Apr 18, 2019 · 2 comments
Assignees
Labels

Comments

@ilzheev
Copy link

ilzheev commented Apr 18, 2019

Hello!
I use Glide for dependencies management into my project.

  1. Initially I used Echo v3 with Glide.
    Working code:

glide.yaml:

- package: github.com/labstack/echo
  version: ~3.3.10
  subpackages:
  - middleware
  1. Trying to update to v4

glide.yaml:

- package: github.com/labstack/echo
  version: ~4.0.0
  subpackages:
  - middleware

Glide is trying to search for package v4 into Echo and returns this error:

[ERROR] Error scanning github.com/labstack/echo/v4: cannot find package "." in:
        /Users/anton/.glide/cache/src/https-github.com-labstack-echo/v4

I suppose there is a repo problem?

@universonic
Copy link

universonic commented Apr 20, 2019

What's the version of go that you are using? This project uses Go module to manage its dependencies from v4. To use v4, you will have to upgrade your Go version to 1.11+, and then migrate your project from glide to Go 1.11+ modules (which manages dependencies by a go.mod file). Hope this helps.

@ilzheev
Copy link
Author

ilzheev commented Apr 20, 2019

@universonic Thanks, it helped!

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

No branches or pull requests

3 participants