From f465e1b6ae70c2a3bbd4c51de5913e19d8cdc694 Mon Sep 17 00:00:00 2001 From: Cosmic <84875247+Online5277@users.noreply.github.com> Date: Wed, 14 Oct 2026 16:49:07 -0400 Subject: [PATCH] Avoid verbatim preparation paths on Windows --- crates/horizon-prepare/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)?;