cmd/go: work use . does nothing in non module root #53090
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
with the following directory tree:
run
go work use .
ina/b
What did you expect to see?
module defined at
a/go.mod
added togo.work
What did you see instead?
nothing happened (see also #51965)
notes
go help work use
saysusage: go work use [-r] moddirs
,but it would be more ergonomic to have
go
look upwards for the moddir,essentially:
go work use $(dirname $(go env GOMOD))
cc @bcmills @matloob
The text was updated successfully, but these errors were encountered: