`go list` need at least one `.go` file in the root of the project fixes #34

This commit is contained in:
Mark Bates 2019-11-13 17:29:41 -05:00
parent 7a5b071f5b
commit 0c7e018c10
2 changed files with 2 additions and 1 deletions

View File

@ -46,4 +46,4 @@ func ClearCache() {
} }
} }
var nonGoDirRx = regexp.MustCompile(`cannot find main|go help modules|go: |build .:|no Go files`) var nonGoDirRx = regexp.MustCompile(`cannot find main|go help modules|go: |build .:|no Go files|can't load package`)

View File

@ -17,6 +17,7 @@ func Test_nonGoDirRx(t *testing.T) {
"go: ", "go: ",
"build .:", "build .:",
"no Go files", "no Go files",
"can't load package: package",
} }
for _, tt := range table { for _, tt := range table {