ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.83k stars 403 forks source link

Default demo of syncthing doesnot work. #68

Open meet-ai opened 3 years ago

meet-ai commented 3 years ago

Default demo of syncthing doesnot work. Seems packages in mod dir cannot be searched.

go-callvis -focus upgrade -group pkg,type -limit github.com/syncthing/syncthing -ignore github.com/syncthing/syncthing/lib/logger github.com/syncthing/syncthing/cmd/syncthing

src/github.com/syncthing/syncthing/cmd/syncthing/main.go:45:2: cannot find package "github.com/pkg/errors" in any of: /usr/local/go/src/github.com/pkg/errors (from $GOROOT) /Users/dove/viper/src/github.com/pkg/errors (from$GOPATH)`

Locates errors package

find . -name errors ./pkg/mod/cache/download/github.com/go-errors/errors ./pkg/mod/cache/download/github.com/pkg/errors ./pkg/mod/google.golang.org/protobuf@v1.23.0/internal/errors ./pkg/mod/golang.org/x/crypto@v0.0.0-20200423211502-4bdfaf469ed5/openpgp/errors ./pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/interp/testdata/src/errors ./pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/internal/lsp/testdata/lsp/primarymod/errors ./pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20190923125748-758128399b1d/leveldb/errors

ondrajz commented 3 years ago

Hey, try moving into syncthing repo and run in there: go-callvis [OPTIONS] ./cmd/syncthing