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

     1  go work use -r foo
     2  cmp go.work go.want_work_r
     3  
     4  go work use other
     5  cmp go.work go.want_work_other
     6  -- go.work --
     7  go 1.18
     8  
     9  use (
    10  	foo
    11  	foo/bar // doesn't exist
    12  )
    13  -- go.want_work_r --
    14  go 1.18
    15  
    16  use (
    17  	./foo
    18  	./foo/bar/baz
    19  )
    20  -- go.want_work_other --
    21  go 1.18
    22  
    23  use (
    24  	./foo
    25  	./foo/bar/baz
    26  	./other
    27  )
    28  -- foo/go.mod --
    29  module foo
    30  -- foo/bar/baz/go.mod --
    31  module baz
    32  -- other/go.mod --
    33  

View as plain text