1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build !windows,!plan9
13 func TestBadGOPATH(t *testing.T) {
19 fmt.Println("Hello World")
22 // https://github.com/fatih/vim-go/issues/2673#issuecomment-622307211.
24 EditorConfig{Env: map[string]string{"GOPATH": ":/path/to/gopath"}},
25 ).run(t, files, func(t *testing.T, env *Env) {
26 env.OpenFile("main.go")
27 env.Await(env.DiagnosticAtRegexp("main.go", "fmt"))
28 if err := env.Editor.OrganizeImports(env.Ctx, "main.go"); err != nil {