forked from mirror/pkger
`go list` need at least one `.go` file in the root of the project fixes #34
This commit is contained in:
parent
7a5b071f5b
commit
0c7e018c10
|
@ -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`)
|
||||
|
|
|
@ -17,6 +17,7 @@ func Test_nonGoDirRx(t *testing.T) {
|
|||
"go: ",
|
||||
"build .:",
|
||||
"no Go files",
|
||||
"can't load package: package",
|
||||
}
|
||||
|
||||
for _, tt := range table {
|
||||
|
|
Loading…
Reference in New Issue