What are your thoughts on allowing one the ability to add a path to the search pathsHashSet with an environment variable? This could allow users to specify the location of their modules if they are not located in standard directories when running zz:
$ ZZ_PATH=./path/to/modules zz build
I think something like:
if let Ok(zz_path) = std::env::var("ZZ_MODULES_PATH") {
let module_paths = zz_path.split(":");
for path in module_paths {
searchpaths.insert(std::path::Path::new(&path).to_path_buf());
}
}
Hi @aep,
What are your thoughts on allowing one the ability to add a path to the search paths
HashSet
with an environment variable? This could allow users to specify the location of their modules if they are not located in standard directories when runningzz
:I think something like: