...

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

Documentation: cmd/go/testdata/script

     1# Test that the GOWORK environment variable flag is used by go work init.
     2
     3! exists go.work
     4go work init
     5exists go.work
     6
     7env GOWORK=$GOPATH/src/foo/foo.work
     8! exists foo/foo.work
     9go work init
    10exists foo/foo.work
    11
    12env GOWORK=
    13cd foo/bar
    14! go work init
    15stderr 'already exists'
    16
    17# Create directories to make go.work files in.
    18-- foo/dummy.txt --
    19-- foo/bar/dummy.txt --

View as plain text