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

How do go monorepos work? Does each library/binary have its own directory with its own go.mod file? And then you need a build system more powerful than go build to descend into each directory and build (if necessary)?

Does this play nice with gopls (go language server) allowing you to jump around to definitions?



Afaik Uber uses Bazel to build everything so it’s not standard go toolchain but it’s using parts of it. And yes as of recently it decently integrates with gopls https://github.com/bazelbuild/rules_go/wiki/Editor-setup


Monorepos have one go.mod file. Bazel or similar build systems optimized for monorepos usually are used.




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

Search: