go.modにdevDependenciesが導入されない理由
Russによると、必要になるまでソースコードはダウンロードしないし、長期的には不利益があるから。
When you do split things out explicitly, then you’d have different version selection results for the different “scopes”. You could potentially be using one version for a build and then get a different version for a test. That would be quite unfortunate. Having one unified go.mod avoids that potential problem.
- [cmd/go: add ‘require test’ section to go.mod]1