diff --git a/twoliter/src/project/mod.rs b/twoliter/src/project/mod.rs index 635341b7..8fe87f5f 100644 --- a/twoliter/src/project/mod.rs +++ b/twoliter/src/project/mod.rs @@ -228,6 +228,9 @@ impl Project { /// files. pub(crate) async fn find_go_modules(&self) -> Result> { let root = self.project_dir.join("sources"); + if !root.exists() { + return Ok(Vec::new()); + } let mut entries = WalkDir::new(&root); let mut modules = Vec::new(); loop {