From 4da9e2d7756925cd617dfc693da293a0594854d2 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 12:44:10 +0800 Subject: [PATCH] fix(cli): proof-deps works with bare .mq.md filename in current directory --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cb9e7a9..f05ade1 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1777,7 +1777,8 @@ fn try_main(cli: Cli) -> Result { } KnowledgeAction::ProofDeps { strict } => { let semantic_root=if path.is_file() { - path.parent().unwrap_or_else(|| std::path::Path::new(".")).to_path_buf() + path.parent().filter(|p|!p.as_os_str().is_empty()) + .unwrap_or_else(||std::path::Path::new(".")).to_path_buf() } else {path.clone()}; let compiled=marqdo::sema::ir::compile_project( &marqdo::sema::ir::CompileOptions {