Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/go: clarify error message for 'go get -u' without arguments in a module root that is not a package #37700
What version of Go are you using (go version)?
What did you do?
I'm working on a project that has no Go package in the root directory of the module. Running
This seems to imply, to me, that running
If you want to update the dependencies of all packages within a module, you want
We probably do need a clearer error message for this case.
@abemotion That doesn't seem much clearer than the current message.
The intent here is most likely to update dependencies for all packages in the main module, rather than the package at the root of the main module. So, specifically if 1)