Are you aware of "replace directives only apply in the main module's go.mod file and are ignored in other modules. See Minimal version selection <https://golang.org/ref/mod#minimal-version-selection> for details."?
You can find it here: https://golang.org/ref/mod#go-mod-file-replace On Tuesday, April 27, 2021 at 7:23:52 AM UTC+2 christoph...@gmail.com wrote: > When debugging or testing we may need to add a replace directive in the > go.mod file. > > This change intended to be local only may interfere with code versioning. > The replace directive may be accidentally committed and published. What is > the proper way to manage replace directives when it comes to code > versioning ? > > Apparently we are supposed to remove replace directives before commits, > and put it back to continue testing. That is boring and error prone. Is > there a better way ? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e94c8990-2c6a-4502-b4b1-0b8fd7c5f605n%40googlegroups.com.