Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: reconsider "-u=patch" changing the default to "@patch" for other arguments #42360

Open
bcmills opened this issue Nov 3, 2020 · 1 comment
Milestone

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Nov 3, 2020

In CL 167747, we implemented support for the @patch version query in go 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

@bcmills bcmills modified the milestones: Go1.17, Go1.16 Nov 3, 2020
@bcmills
Copy link
Member Author

@bcmills bcmills commented Nov 3, 2020

Tentatively milestoning to 1.16 due to the interaction with CL 263267.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.