3 ms·
How one depends on another? To me it sounds these things are orthogonal.
by varispeed 4y ago
How one depends on another? To me it sounds these things are orthogonal.
- masklinn 4y agoBecause of time? How would you use go.mod when go mod does not exist?
- room271 4y agogo.mod provides a way to introduce the new behaviour incrementally. The key point is the dependencies can (and already do) declare different go versions in their go.mod file. When everything is compiled, each module is compiled with the behaviour that applies to its own declared go version. So even if you update your go.mod go version to take advantage of this (soon to be) new behaviour, you can continue to use existing deps happily without worrying they will break.
- heleninboodler 4y agoThere's an ambiguity in the phrase "then go.mod wouldn't have existed." One way to read it is "then, as a consequence, go.mod wouldn't have existed" and the other is "then go.mod wouldn't have existed at that time." I believe the intention was the latter, whereas you're inferring the former.