Skip to main content

canonical_root

Function canonical_root 

Source
pub fn canonical_root(workspace_root: &Path) -> Result<PathBuf>
Expand description

Canonicalize a repo root, mapping the IO error to a discovery error.

caliband derives its control-socket name by hashing the raw --workspace-root argument it is given, so prospero must hand caliband the same canonical form it hashes for socket lookup — otherwise a symlinked path (e.g. macOS /tmp/private/tmp) yields two different socket names and discovery waits forever. (#45)