From 0c7e018c100b66e102b8a0b53d1ac6441ed852d1 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Wed, 13 Nov 2019 17:29:41 -0500 Subject: [PATCH] `go list` need at least one `.go` file in the root of the project fixes #34 --- here/here.go | 2 +- here/here_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/here/here.go b/here/here.go index f2b3452..a825f63 100644 --- a/here/here.go +++ b/here/here.go @@ -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`) diff --git a/here/here_test.go b/here/here_test.go index 79da34b..1f19112 100644 --- a/here/here_test.go +++ b/here/here_test.go @@ -17,6 +17,7 @@ func Test_nonGoDirRx(t *testing.T) { "go: ", "build .:", "no Go files", + "can't load package: package", } for _, tt := range table {