You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect it to work in production without modifying the source files
What did you see instead?
It's unclear how to get it to work in production or how it works if the replace directive is left in the go.mod file. Are we expected to add/remove the replace directives manually, or will the replace directive be ignored if the replace directive path does not exist? It's unclear and the docs need to be clearer on this imo.
My goal is to use replace directives in go.mod and leave them there, and have them only be used in development but avoid the need to remove the lines from the go.mod file when pushing git commits to prod.
The text was updated successfully, but these errors were encountered:
My goal is to use replace directives in go.mod and leave them there, and have them only be used in development but avoid the need to remove the lines from the go.mod file when pushing git commits to prod.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Put a replace directive in a go.mod file
What did you expect to see?
I expect it to work in production without modifying the source files
What did you see instead?
It's unclear how to get it to work in production or how it works if the replace directive is left in the go.mod file. Are we expected to add/remove the replace directives manually, or will the replace directive be ignored if the replace directive path does not exist? It's unclear and the docs need to be clearer on this imo.
My goal is to use replace directives in go.mod and leave them there, and have them only be used in development but avoid the need to remove the lines from the go.mod file when pushing git commits to prod.
The text was updated successfully, but these errors were encountered: