From ec87c4489232017f6cc3e212209db11712aa8f1c Mon Sep 17 00:00:00 2001 From: Kyle Lacy Date: Fri, 27 Mar 2026 01:11:12 -0700 Subject: [PATCH] Handle `.` and `..` as local paths for positional project CLI args --- crates/brioche/src/utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/brioche/src/utils.rs b/crates/brioche/src/utils.rs index 0ceaeba..f6c5639 100644 --- a/crates/brioche/src/utils.rs +++ b/crates/brioche/src/utils.rs @@ -133,7 +133,9 @@ impl clap::builder::TypedValueParser for ProjectRefsParser { // First check if it's a local path, then a registry name let source = if project_part.is_empty() { ProjectSource::Local(PathBuf::from(".")) - } else if project_part.starts_with("./") + } else if project_part == "." + || project_part == ".." + || project_part.starts_with("./") || project_part.starts_with("../") || project_part.starts_with('/') {