# Ensure go work sync works without any modules in go.work.
go work sync

# Ensure go work sync works even without a go.mod file.
rm go.mod
go work sync

-- go.work --
go 1.18
-- go.mod --
go 1.18
module foo
