-
Notifications
You must be signed in to change notification settings - Fork 11
To apply replace/exclude directives or not to apply replace/exclude directives? #51
Comments
Arguments for applying
|
Arguments against applying
|
Option spaceHere we summarise the option space we have with respect to applying (or otherwise)
|
. |
Another argument against:
|
One more against:
That is: requiring your users to build your binary with a specific |
Just noting another point as an aide memoire (will update main points in a bit): in the case of a slow-responding maintainer, |
In some cases you can work around a slow-moving maintainer by using an actual fork (with its own import path) instead of a That doesn't work for packages that involve global state, but those are already dicey with |
Per our offline discussion, linking the very relevant golang/go#26904 (comment):
|
The discussion in https://go-review.googlesource.com/c/go/+/148517/ touches on a key question we faced when we came to implement
gobin
: shouldreplace
andexclude
directives in themain
package's module'sgo.mod
be applied when we install saidmain
package?For
gobin
, we decided the answer was "yes". But there are some compelling arguments for and against this position, which we try to summarise below.This description will remain a high-level overview of the problem description. The comments that follow below will be used to summarise arguments "for", "against" and the option space.
Please comment below and we will synthesise/summarise responses.
The text was updated successfully, but these errors were encountered: