News for hackers. Stuff that matters.
Re:Go Modules Cheat Sheet by morelisp on Monday May 03, 2021 @04:16PM (#27030101)
You can use a replace directive to handle cases like this without updating the code.

https://golang.org/ref/mod#go-mod-file-replace

Re:Go Modules Cheat Sheet by tsimionescu on Tuesday May 04, 2021 @02:18AM (#27034560)
Only if you're the final consumer of that module - if you publish it so others use your module, the replace directive will be ignored and they will get a failed build (or have to add their own replace directive for your sub-dependency).
Re:Go Modules Cheat Sheet by morelisp on Tuesday May 04, 2021 @02:31AM (#27034631)
Yes, but this is roughly the same as any packaging system - the ones that don't use DNS as a default namespace require you to add explicit package repositories, which is no more or less onerous than the replace directive.