mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
The importPathFromPath function invoked during `revel build` in callchain Build -> ProcessSource -> importPathFromPath assumes that the vendor folder is in the app's root directory when trimming import paths for inclusion into autogenerated templates. Consequently vendor detection fails if the vendor folder is located at another hiher layer in the directory tree and /prefix/path/to/vendor/ is not stripped from the import path, leading to inclusion of invalid importpaths, resulting in compilation error and build abortion. This fix makes the vendor folder detection more flexible, allowing for the vendor folder to be present at any higher level in the directory hirachy.