Skip to content

cmd/go: suggest 'go get' instead of 'go mod tidy' when indirect dependencies are missing #46710

Open
@bcmills

Description

@bcmills

(Noticed while testing #45979.)

If a lazy module (#36460) is missing explicit requirements on indirect dependencies, we currently emit the error message:

go: updates to go.mod needed; to update it:
	go mod tidy

This advice is correct, but it's too big a hammer — we should instead suggest go get on the specific packages within the main repo whose transitive dependencies are missing.

CC @jayconrod @matloob

Metadata

Metadata

Assignees

Labels

BadErrorMessageIssues related compiler error messages that should be better.GoCommandcmd/goNeedsFixThe path to resolution is known, but the work has not been done.modules

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions