3 ms·
> Using "go tool" forces you to have a bunch of dependencies in your go.mod No, it doesn't. You can use "go tool -modfile=tools.mod mytool" if you want them se
by mseepgood 2y ago
> Using "go tool" forces you to have a bunch of dependencies in your go.mod
No, it doesn't. You can use "go tool -modfile=tools.mod mytool" if you want them separate.
- jen20 2y agoThis should almost certainly be the default recommendation.
- jcmfernandes 2y agoI built a simple tool to generate binstubs and work around this problem: https://github.com/jcmfernandes/go-tools-binstubs https://github.com/jcmfernandes/go-tools-binstubs However, having multiple tools share a single mod file still proves problematic occasionally, due to incompatible dependencies.
- nijave 2y agoThat seems like it should have been the default