kisielk / godepgraph

A Go dependency graph visualization tool
MIT License
1.06k stars 90 forks source link

one about vendors problems #23

Closed webluoye closed 6 years ago

webluoye commented 6 years ago

first thanks for your project.

my project relations:

project A a.go import "abc/consul"

project abc/consul imports "github.com/hashicorp/consul/api"

when run "godepgraph projectA"

2018/03/13 17:27:55 failed to import github.com/hashicorp/go-cleanhttp: cannot find package "github.com/hashicorp/go-cleanhttp" in any of: /var/www/gopath/src/projectA/vendor/github.com/hashicorp/go-cleanhttp (vendor tree) /usr/local/go/src/github.com/hashicorp/go-cleanhttp (from $GOROOT) /var/www/go/src/github.com/hashicorp/go-cleanhttp (from $GOPATH) /var/www/gopath/src/github.com/hashicorp/go-cleanhttp

"github.com/hashicorp/go-cleanhttp" in "/var/www/go/src/github.com/hashicorp/consul/vendor"

but go build is ok.

go env:

GOOS="linux" GOPATH="/var/www/go/:/var/www/gopath/" GORACE="" GOROOT="/usr/local/go"

thanks.