4 ms·
You should be able to use "replace" to use your forked module instead of the original and you don't have to change anything.
by fastest963 5y ago
You should be able to use "replace" to use your forked module instead of the original and you don't have to change anything.
- jatone 5y agounfortunately replace is not supported well with modules. and they are hell bent on not supporting it well.
- cube2222 5y agoI've been doing forks of modules and using replace to use them in my code base extensively. I had 0 problems, it works marvelously. If you're doing some kind of global find/replace on fork, then something's definitely not right.
- infogulch 5y agoYou mean this? https://thewebivore.com/using-replace-in-go-mod-to-point-to-your-local-module/ https://thewebivore.com/using-replace-in-go-mod-to-point-to-...
- jatone 5y agoyes. now try to go install your application with the replace directive. it will silently replace the code with the original upstream version.