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

proposal: more idempotence for go mod {download, tidy, vendor} #60177

Closed
mcandre opened this issue May 13, 2023 · 1 comment
Closed

proposal: more idempotence for go mod {download, tidy, vendor} #60177

mcandre opened this issue May 13, 2023 · 1 comment

Comments

@mcandre
Copy link

mcandre commented May 13, 2023

I regularly run the commands go mod {download, tidy, vendor} when adjusting my dependencies. However, one of these commands often fails, whining that the other has not run yet. Quite frustrating, in fact.

I could study the commands in further detail to learn, and memorize the expected order to run them in. But as a workaround, I usually just repeat all three in a cycle a few times, until they calm down.

One solution would be to move more of these subcommands into a CLI flag of the other subcommand. Then, the flag could trigger the desired action as a side effect after it automatically satisfies its own precondition.

@gopherbot gopherbot added this to the Proposal milestone May 13, 2023
@seankhliao
Copy link
Member

We've explicitly decided to move to -mod=readonly to have less side effects. I don't think we're going to do this.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2023
@golang golang locked and limited conversation to collaborators May 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants