cmd/go: add option to run "go mod tidy" recursively on nested modules #40302
Labels
FeatureRequest
GoCommand
cmd/go
modules
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go mod tidy ./...
With a file structure like:
What did you expect to see?
Recursively run
go mod tidy
on subfoldersWhat did you see instead?
Although having multiple modules inside doesn't seem to be always wise for everyone, and I know some people are against it, taking the advice from https://github.com/golang/go/wiki/Modules#should-i-have-multiple-modules-in-a-single-repository, there are still cases where it is useful, and it would be good to support this option
The text was updated successfully, but these errors were encountered: