4 ms·
What happens when the dependency are updated and not compatible anymore ?
by _ache_ 3y ago
What happens when the dependency are updated and not compatible anymore ?
- mseepgood 3y agoA Go module specifies the exact versions of its dependencies. These versions do not change unless the author explicitly updates them.
- vaughnegut 3y agoThat's why you have a go.mod file that specifies the dependencies for you. Just run go mod tidy and it generates/updates it for you. You get these reproducible builds for free this way.
- teejays 3y agoDependencies won’t update themselves since they are locked to their versions. If the developer manually triggers an update, and the dependencies aren’t compatible, either the code wouldn’t compile or it’s behave weird. In both cases, what’s the advantage of separating out the fetch-dependencies part?