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