berks viz

If you use Chef these days you probably also use Berkshelf for Chef cookbook dependency management. It's part of the Chef-DK and it's long established as a core part of the Chef ecosystem.

As with any situation with dependencies, occasionally you get horrible dependency hell with multiple layers of version conflicts and trying to work out the specific sources is about enough to make you cry blood.

One feature introduced to Berkshelf fairly recently is berks viz. I didn't even know it existed until I was trying to work out a complex dependency problem, so I figure lots of people might not know about it either.

All it does is generate a png showing the dependency graph, but that can be incredibly helpful to pointpoint where you need to look to resolve the problem.

It requires graphviz, but you can install that easily enough with Homebrew: brew install graphviz. If you're not using a Mac, your OS package management system probably has graphviz. If you're using Windows, I don't know what to tell you, I've never owned a Winbox.