Launching a program that has Tera::new("templates/**/*"); from the root directory on Linux causes globwalk to try to walk all available paths to find paths that start with "templates", but quickly gets lost in /proc/ (because it has some unfortunate symlink loops).
It might make sense to emit a warning if the current working directory is /, and/or do a quick and dirty hack of splitting the pattern along slashes (and make sure the first component is not a wildcard), and look for that subdirectory (and if it exists, supply the path of that as base dir to globwalk).
Also I believe this is the root case to be behind bug #719.
Hello,
Launching a program that has
Tera::new("templates/**/*");
from the root directory on Linux causes globwalk to try to walk all available paths to find paths that start with "templates", but quickly gets lost in /proc/ (because it has some unfortunate symlink loops).It might make sense to emit a warning if the current working directory is
/
, and/or do a quick and dirty hack of splitting the pattern along slashes (and make sure the first component is not a wildcard), and look for that subdirectory (and if it exists, supply the path of that as base dir to globwalk).Also I believe this is the root case to be behind bug #719.
Thanks!