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

mockery and vgo: Error walking (empty GOPATH) #199

Closed
ghostiam opened this issue May 28, 2018 · 1 comment
Closed

mockery and vgo: Error walking (empty GOPATH) #199

ghostiam opened this issue May 28, 2018 · 1 comment

Comments

@ghostiam
Copy link

$ mockery -dir pkg/auth/ -name Auth
/Users/ghost_russia/projects/.../pkg/auth/jwt.go:7:2: could not import github.com/dgrijalva/jwt-go (cannot find package "github.com/dgrijalva/jwt-go" in any of:
        /usr/local/opt/go/libexec/src/github.com/dgrijalva/jwt-go (from $GOROOT)
        /Users/ghost_russia/projects/golang/src/github.com/dgrijalva/jwt-go (from $GOPATH))
/Users/ghost_russia/projects/.../pkg/auth/jwt.go:11:2: undeclared name: jwt
/Users/ghost_russia/projects/.../pkg/auth/jwt.go:7:2: could not import github.com/dgrijalva/jwt-go (cannot find package "github.com/dgrijalva/jwt-go" in any of:
        /usr/local/opt/go/libexec/src/github.com/dgrijalva/jwt-go (from $GOROOT)
        /Users/ghost_russia/projects/golang/src/github.com/dgrijalva/jwt-go (from $GOPATH))
/Users/ghost_russia/projects/.../pkg/auth/jwt.go:11:2: undeclared name: jwt
Error walking: couldn't load packages due to errors: /Users/ghost_russia/projects/.../pkg/auth/auth.go, /Users/ghost_russia/projects/.../pkg/auth/jwt.go
@ghostiam ghostiam changed the title vgo (empty GOPATH) mockery and vgo: Error walking (empty GOPATH) May 28, 2018
@ghostiam
Copy link
Author

vgo vendor solves this problem

LandonTClipp pushed a commit to LandonTClipp/mockery that referenced this issue Oct 19, 2023
LandonTClipp pushed a commit to LandonTClipp/mockery that referenced this issue Nov 20, 2023
LandonTClipp pushed a commit to LandonTClipp/mockery that referenced this issue Dec 23, 2023
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

1 participant