cmd/go: workspace recursive add should skip malformed module definitions #51959
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
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?
What did you expect to see?
Expected to see a functional workspace to be created, which should have no effect over the final
go run hello.go
command.What did you see instead?
An un-usable workspace was created due to the
tools
repo containing some purposefully invalidgo.mod
files meant for unit testing, whichgo work use -r .
added to the workspace, causing the finalgo run hello.go
command to fail with:go work use -r
should probably print a warning message for each malformed module definition that it encounters instead of adding those to the workspace.The text was updated successfully, but these errors were encountered: