Text file src/cmd/go/testdata/script/work_init_path.txt
1 # Regression test for https://go.dev/issue/51448. 2 # 'go work init . foo/bar' should produce a go.work file 3 # with the same paths as 'go work init; go work use -r .'. 4 5 go work init . foo/bar 6 mv go.work go.work.init 7 8 go work init 9 go work use -r . 10 cmp go.work go.work.init 11 12 -- go.mod -- 13 module example 14 go 1.18 15 -- foo/bar/go.mod -- 16 module example 17 go 1.18 18