Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

go list can tell you that pkg1 imports pkg2.

At work, go list was too slow and depended on a git checkout so we wrote our own import graph parser using the go std lib parser and operate on byte slices of the files we read directly from git. It’s speed of light fast and we can compute go import graphs in parallel from multiple commits to determine what has changed in the graph so we can reduce the scope of what is tested.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: