cmd/go: reconsider "-u=patch" changing the default to "@patch" for other arguments #42360
Labels
modules
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
In CL 167747, we implemented support for the
@patch
version query ingo get
for #26812, and made-u=patch
imply@patch
for positional arguments that do not specify any other version.In retrospect, that behavior seems too subtle: it changes the meaning of one argument based on another, and the other argument might not even be explicit on the command line (for example, it could be set via
GOFLAGS
). We should reconsider that decision.Perhaps when
-u=patch
is set we should require an explicit@version
suffix for all arguments, so that it is clear whether the user means “upgrade the argument and patch its dependencies” or “patch the argument and its dependencies”.CC @rsc @jayconrod @matloob
The text was updated successfully, but these errors were encountered: