...

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

Documentation: cmd/go/testdata/script

     1go work use -r .
     2cmp go.work go.work.want
     3
     4-- go.work --
     5go 1.18
     6
     7use (
     8	.
     9	./sub
    10	./sub/dir/deleted
    11)
    12-- go.work.want --
    13go 1.18
    14
    15use ./sub/dir
    16-- sub/README.txt --
    17A go.mod file has been deleted from this directory.
    18In addition, the entire subdirectory sub/dir/deleted
    19has been deleted, along with sub/dir/deleted/go.mod.
    20-- sub/dir/go.mod --
    21module example/sub/dir
    22go 1.18

View as plain text