I'm trying to debug the following build error in our CI where "A depends on B which can't build because it depends on C." I'm building my data service which doesn't directly depend on kafkaAvailMonitor.go which makes this error hard to trace. In other words:
data (what I'm building) depends on (?) which depends on kafkaAvailMonitor.go
It may seem trivial to fix for a developer they just do "go get whatever" but I can't do that as part of the release process - I have to find the person that added the dependency and ask them to fix it.
I'm aware that there are tools to visualize the dependency tree and other more sophisticated build systems, but this seems like a pretty basic issue: is there any way I can view the full trace to see what's causing the build issue? In response to one of the comments - every programming languages I've used to date e.g. Java/Python all provide this information out of the box and it is very helpful for debugging code that I didn't write especially since I can't just look in a single place like a POM or requirements.txt to see who added the dependency.
Also in response to a comment - if the following isn't a stack trace what is it? An list of errors logged to stdout by a binary? Aren't those errors first put on the stack by the go build binary that's being executed? Seems like a silly distinction to me to say "that's not a stack trace" especially when it has nothing to do with my question, but I removed the word "stack" from the question if that makes people happy.
go build -a -v
../../../msgq/kafkaAvailMonitor.go:8:2: cannot find package
"github.com/Shopify/sarama/tz/breaker" in any of:
/usr/lib/go-1.6/src/github.com/Shopify/sarama/tz/breaker (from $GOROOT)
/home/jenkins/go/src/github.com/Shopify/sarama/tz/breaker (from $GOPATH)
/home/jenkins/vendor-library/src/github.com/Shopify/sarama/tz/breaker
/home/jenkins/go/src/github.com/Shopify/sarama/tz/breaker
/home/jenkins/vendor-library/src/github.com/Shopify/sarama/tz/breaker