diff --git a/crates/horizon-prepare/src/lib.rs b/crates/horizon-prepare/src/lib.rs index 7cecb28ee..f997be326 100644 --- a/crates/horizon-prepare/src/lib.rs +++ b/crates/horizon-prepare/src/lib.rs @@ -398,8 +398,8 @@ impl Run<'_> { /// Prepares the resources; returns their folder (`.local/horizon-client/`). pub fn prepare(options: &Options, log: Log) -> Result { - let root = - &fs::canonicalize(&options.root).map_err(|e| format!("{}: {e}", options.root.display()))?; + let root = &std::path::absolute(&options.root) + .map_err(|e| format!("{}: {e}", options.root.display()))?; let lock = artifacts::Lock::read(root)?; // Java first: nothing below can finish without it, and the player should hear it at once. let jdk = java::find(lock.java_major)?;