mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Amended importPathFromPath to detect vendor folder from basePath, not just the word vendor in the path
This commit is contained in:
@@ -37,7 +37,7 @@ type methodMap map[string][]*model.MethodSpec
|
||||
func ProcessSource(paths *model.RevelContainer) (_ *model.SourceInfo, compileError error) {
|
||||
pc := &processContainer{paths: paths}
|
||||
for _, root := range paths.CodePaths {
|
||||
rootImportPath := importPathFromPath(root)
|
||||
rootImportPath := importPathFromPath(root, paths.BasePath)
|
||||
if rootImportPath == "" {
|
||||
utils.Logger.Info("Skipping empty code path", "path", root)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user