src/cmd/go/go_test.go | 1 + diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 67f2534c7f7f5421e42f3aa0076e3986e53e2000..804901cb5a89e36b85671e6d90a74be0e2a22c36 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -751,6 +751,7 @@ defer tg.cleanup() tg.tempFile("src/mycmd/x.go", `package main func main() {}`) tg.setenv("GOPATH", tg.path(".")) + tg.cd(tg.path("src/mycmd")) tg.run("build", "mycmd")