pub fn resolve_state_dir(workspace_root: &Path, state_dir: &PathBuf) -> PathBuf
Resolve the effective state directory from a workspace root and user option.