dep-tree icon indicating copy to clipboard operation
dep-tree copied to clipboard

Support for Go codebase

Open dolanor opened this issue 2 years ago • 2 comments

I love those kind of visualizations.

Do you plan support on Go codebase? Do you know if it could be somewhat trivial if somebody jumps in your codebase?

dolanor avatar Feb 06 '24 12:02 dolanor

Even though I could use it myself, I'm not planning on doing it because of the technical complexity it would involve.

In Golang, dependencies between files are not explicitly declared, you can use symbols from any file without importing it as long as everything happens within same package, so resolving file dependencies would require a full parsing of the Golang syntax and evaluate from there.

Do you know if it could be somewhat trivial if somebody jumps in your codebase?

Making language implementations is designed to be simple, but I think Golang would be one of the hardest implementations, so it would not be a newcomer-friendly task definitely

gabotechs avatar Feb 06 '24 17:02 gabotechs

I understand it's non trivial but +1 to this request!

Olshansk avatar Feb 23 '24 23:02 Olshansk

Support for go was just added and it's available in the 0.20.2 version, feel free to try it out and give feedback!

gabotechs avatar Jun 08 '24 22:06 gabotechs

This version does not seem to be available through homebrew. I will try with python

remyleone avatar Jun 10 '24 08:06 remyleone

It should be available through a homebrew tap (0.20.3 actually)

brew install gabotechs/taps/dep-tree

It will soon be present in the official homebrew repository, once https://github.com/Homebrew/homebrew-core/pull/174092 is merged

gabotechs avatar Jun 10 '24 08:06 gabotechs