go-callvis icon indicating copy to clipboard operation
go-callvis copied to clipboard

remove cgo dependency to allow for cross-compilation

Open yashbhutwala opened this issue 3 years ago • 2 comments

yashbhutwala avatar Sep 11 '20 09:09 yashbhutwala

A workaround for this is to use v0.6.0, which does not depend on cgo. However, you will probably still need graphviz.

kroppt avatar Aug 24 '21 15:08 kroppt

Suggestion from @kroppt can work as workaround, but I think this should be solved by supporting non-cgo builds and making the cgo optional.

This could be done by providing two implementations for the graphviz rendering, one that uses cgo library and contains // +build cgo and the other as a fallback using the system graphviz tool for rendering graph and contains // +build !cgo.

ondrajz avatar Aug 24 '21 16:08 ondrajz