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
Since this proposal is pretty simple, I skip the lengthy proposal steps.
The problem: When developing on different dependend packages in different repositories, we use replace statements inside go.mod. Since go.mod is checked into the repository, when publishing the package, the replace statements have to be removed to that the cloning user doesn't get them.
The solution: If the replace statements were inside a separate file, the developers could simply not check them into the repository. Also some other person working on local modified dependencies could add his own overrides without messing with repository files.
Proposed file name:overrides.mod or local.mod or go.local or whatever
For compatibility reasons, the replace statements inside go.mod could stay and behave just as today, but would be superceeded by a corresponding entry in overrides.mod.
The text was updated successfully, but these errors were encountered:
Since this proposal is pretty simple, I skip the lengthy proposal steps.
The problem: When developing on different dependend packages in different repositories, we use
replace
statements insidego.mod
. Sincego.mod
is checked into the repository, when publishing the package, the replace statements have to be removed to that the cloning user doesn't get them.The solution: If the replace statements were inside a separate file, the developers could simply not check them into the repository. Also some other person working on local modified dependencies could add his own overrides without messing with repository files.
Proposed file name:
overrides.mod
orlocal.mod
orgo.local
or whateverFor compatibility reasons, the replace statements inside go.mod could stay and behave just as today, but would be superceeded by a corresponding entry in
overrides.mod
.The text was updated successfully, but these errors were encountered: