Text file src/cmd/go/testdata/script/work_sync_missing_module.txt

     1  # Ensure go work sync works without any modules in go.work.
     2  go work sync
     3  
     4  # Ensure go work sync works even without a go.mod file.
     5  rm go.mod
     6  go work sync
     7  
     8  -- go.work --
     9  go 1.18
    10  -- go.mod --
    11  go 1.18
    12  module foo
    13  

View as plain text