4 ms·
unfortunately replace is not supported well with modules. and they are hell bent on not supporting it well.
by jatone 5y ago
unfortunately 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.