mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
Merge pull request #578 from tvanriper/patch-1
Fix for projects with 'tests' in path
This commit is contained in:
commit
36a17c40b0
@ -119,7 +119,7 @@ func ParsePackagesFromDir(dirpath string) {
|
|||||||
// all 'tests' folders and dot folders wihin dirpath
|
// all 'tests' folders and dot folders wihin dirpath
|
||||||
d, _ := filepath.Rel(dirpath, fpath)
|
d, _ := filepath.Rel(dirpath, fpath)
|
||||||
if !(d == "vendor" || strings.HasPrefix(d, "vendor"+string(os.PathSeparator))) &&
|
if !(d == "vendor" || strings.HasPrefix(d, "vendor"+string(os.PathSeparator))) &&
|
||||||
!strings.Contains(fpath, "tests") &&
|
!strings.Contains(d, "tests") &&
|
||||||
!(d[0] == '.') {
|
!(d[0] == '.') {
|
||||||
err = parsePackageFromDir(fpath)
|
err = parsePackageFromDir(fpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user