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
Not sure if comments can be used in go.mod, but having an additional comment here would be great as well.
I think it allows comments. However I don't think that would scale. Even if we commented that a particular version of a dependency is necessary for some reason X, we would have no idea whether that ceases to be true if X is no longer a valid reason (as there can be other reasons).
This whole file is a delicate mesh of subtleties and it's not possible to document what would fail in case one of these lines are changed. The only assertion we can make is that "it worked like this for whoever touched it last, possibly only after lots of sweat and tears". I think that increasing test coverage to also invoke the less often used tooling is the only way to go...
Code generation script barfs when running with GOPATH unset or GOBIN set to something else than $GOPATH/bin, IIRC.
Right. I don't think we invoke code generation in the CI runs at all, do we?
When reading the documentation for go.mod it did not seem to me that this is what
replace
is to be used for? Also, I'm not sure that:would qualify as making the intent clear :-)
I think it allows comments. However I don't think that would scale. Even if we commented that a particular version of a dependency is necessary for some reason X, we would have no idea whether that ceases to be true if X is no longer a valid reason (as there can be other reasons).
This whole file is a delicate mesh of subtleties and it's not possible to document what would fail in case one of these lines are changed. The only assertion we can make is that "it worked like this for whoever touched it last, possibly only after lots of sweat and tears". I think that increasing test coverage to also invoke the less often used tooling is the only way to go...
Originally posted by @porridge in #1326 (comment)
The text was updated successfully, but these errors were encountered: