Re:Go Run
by _ache_ on Wednesday February 21, 2024 @06:00PM
(#39460832)
What happens when the dependency are updated and not compatible anymore ?
[ Parent
| on HN ]
Dependencies 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?
Re:Go Run
by vaughnegut on Wednesday February 21, 2024 @06:07PM
(#39460912)
That'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.