diff --git a/src/cli_util.rs b/src/cli_util.rs index b087b5bb8..765198745 100644 --- a/src/cli_util.rs +++ b/src/cli_util.rs @@ -377,6 +377,10 @@ impl CommandHelper { maybe_workspace_loader: Result, store_factories: StoreFactories, ) -> Self { + // `cwd` is canonicalized for consistency with `Workspace::workspace_root()` and + // to easily compute relative paths between them. + let cwd = cwd.canonicalize().unwrap_or(cwd); + Self { app, cwd,