Merge pull request #35 from markbates/fix-no-go-err

`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-14 08:50:27 -08:00 committed by GitHub
commit 6089e09d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: ",
"build .:",
"no Go files",
"can't load package: package",
}
for _, tt := range table {