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

How to resolve dependency from vendor? #49

Open
rhzs opened this issue Apr 14, 2018 · 0 comments
Open

How to resolve dependency from vendor? #49

rhzs opened this issue Apr 14, 2018 · 0 comments

Comments

@rhzs
Copy link

rhzs commented Apr 14, 2018

I have an issue with dependency from dependent library. Let's say I need to perform testing with go test. As follow:

go on ๎‚  master via ๐Ÿน v1.1
โžœ go test github.com/incubus8/go/pkg/gin
vendor/github.com/gin-gonic/gin/binding/default_validator.go:11:2: cannot find package "gopkg.in/go-playground/validator.v8" in any of:
	/Users/angel/go/src/github.com/incubus8/go/vendor/github.com/gin-gonic/gin/vendor/gopkg.in/go-playground/validator.v8 (vendor tree)
	/Users/angel/go/src/github.com/incubus8/go/vendor/gopkg.in/go-playground/validator.v8
	/usr/local/opt/go/libexec/src/gopkg.in/go-playground/validator.v8 (from $GOROOT)
	/Users/angel/go/src/gopkg.in/go-playground/validator.v8 (from $GOPATH)
vendor/github.com/gin-gonic/gin/render/yaml.go:10:2: cannot find package "gopkg.in/yaml.v2" in any of:
	/Users/angel/go/src/github.com/incubus8/go/vendor/github.com/gin-gonic/gin/vendor/gopkg.in/yaml.v2 (vendor tree)
	/Users/angel/go/src/github.com/incubus8/go/vendor/gopkg.in/yaml.v2
	/usr/local/opt/go/libexec/src/gopkg.in/yaml.v2 (from $GOROOT)
	/Users/angel/go/src/gopkg.in/yaml.v2 (from $GOPATH)
go on ๎‚  master via ๐Ÿน v1.1
โžœ manul -I gopkg.in/yaml.v2
2018-04-14 17:05:45 [FATAL]: unknown dependency: gopkg.in/yaml.v2

go on ๎‚  master via ๐Ÿน v1.1 took 5s
โžœ manul -I gopkg.in/go-playground/validator.v8
2018-04-14 17:05:52 [FATAL]: unknown dependency: gopkg.in/go-playground/validator.v8

go on ๎‚  master via ๐Ÿน v1.1 took 4s
โžœ go test github.com/incubus8/go/pkg/gin
vendor/github.com/gin-gonic/gin/binding/default_validator.go:11:2: cannot find package "gopkg.in/go-playground/validator.v8" in any of:
	/Users/angel/go/src/github.com/incubus8/go/vendor/github.com/gin-gonic/gin/vendor/gopkg.in/go-playground/validator.v8 (vendor tree)
	/Users/angel/go/src/github.com/incubus8/go/vendor/gopkg.in/go-playground/validator.v8
	/usr/local/opt/go/libexec/src/gopkg.in/go-playground/validator.v8 (from $GOROOT)
	/Users/angel/go/src/gopkg.in/go-playground/validator.v8 (from $GOPATH)
vendor/github.com/gin-gonic/gin/render/yaml.go:10:2: cannot find package "gopkg.in/yaml.v2" in any of:
	/Users/angel/go/src/github.com/incubus8/go/vendor/github.com/gin-gonic/gin/vendor/gopkg.in/yaml.v2 (vendor tree)
	/Users/angel/go/src/github.com/incubus8/go/vendor/gopkg.in/yaml.v2
	/usr/local/opt/go/libexec/src/gopkg.in/yaml.v2 (from $GOROOT)
	/Users/angel/go/src/gopkg.in/yaml.v2 (from $GOPATH)

How can I resolve that using Manul? Need help.

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