3 ms·
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
by umvi 4y ago
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?
- dilyevsky 4y agoAfaik 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 https://github.com/bazelbuild/rules_go/wiki/Editor-setup
- doktorhladnjak 4y agoMonorepos have one go.mod file. Bazel or similar build systems optimized for monorepos usually are used.