diff --git a/src/cmd/go/testdata/script/build_relative_import_not_supported_in_go_path_mode.txt b/src/cmd/go/testdata/script/build_relative_import_not_supported_in_go_path_mode.txt new file mode 100644 index 00000000000..4959ed77b47 --- /dev/null +++ b/src/cmd/go/testdata/script/build_relative_import_not_supported_in_go_path_mode.txt @@ -0,0 +1,11 @@ +env GO111MODULE=off + +! go build +stderr 'cannot find package "\." in:\n\t.WORK/gopath/src/foo' + +-- main.go -- +package main + +import _ "./foo" + +func main() {}