Closed emcniece closed 6 years ago
And you are trying to compile it on something else than linux I presume?
Also, ignoring packages doesn't lose dependency on it, it just omits that packages from the output graph result. The analysis is done for the entire program.
Yes, this compilation is happening on OSX... good call. I'll try this on Linux and see what happens. Thank you for the clarification on -ignore
!
Excellent, verified that the build target was the problem.
root@wtfdidijustdo:~/go# go-callvis github.com/rancher/os/cmd | dot -Tpng -o install.png
go-callvis: cannot find package "main" in any of:
/usr/local/go/src/main (from $GOROOT)
/root/go/src/main (from $GOPATH)
root@emc2-wp1:~/go#
There's some other issues, unrelated to this topic. Thanks again!
I'm trying to run this against a project that has platform-specific build files, and it's failing. Not sure if it's because I'm not ignoring stuff properly or if it's because of cross-platform builds.
Command:
Result:
I suspect that this is at least partially due to the
util
package having platform-specific builds. For example, most of the errors above (Mount, Blkid, ResolveDevice) reside inutil_linux.go
instead of the mainutil.go
:github.com/rancher/os/util/util_linux.go
Can anyone confirm that I am not ignoring or focussing this target properly?