mirror of https://github.com/markbates/pkger.git
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:
commit
6089e09d37
|
@ -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: ",
|
"go: ",
|
||||||
"build .:",
|
"build .:",
|
||||||
"no Go files",
|
"no Go files",
|
||||||
|
"can't load package: package",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tt := range table {
|
for _, tt := range table {
|
||||||
|
|
Loading…
Reference in New Issue