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

     1  ! go work use foo bar baz
     2  
     3  stderr '^go: foo is not a directory'
     4  stderr '^go: directory baz does not exist'
     5  cmp go.work go.work_want
     6  
     7  ! go work use -r qux
     8  stderr '^go: qux is not a directory'
     9  
    10  -- go.work --
    11  go 1.18
    12  -- go.work_want --
    13  go 1.18
    14  -- foo --
    15  -- qux --
    16  -- bar/go.mod --
    17  module bar
    18  

View as plain text