Thank you for pointing this out. I wasn’t aware of it. But the question 
still holds for published main programs. 

Le mardi 27 avril 2021 à 07:27:58 UTC+2, Uli Kunitz a écrit :

> 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/93675842-5e9f-44dc-a4e2-44c7643824b2n%40googlegroups.com.

Reply via email to