Avoid verbatim preparation paths on Windows

This commit is contained in:
Cosmic
2026-10-14 16:49:07 -04:00
parent 6c4ad9d825
commit f465e1b6ae
+2 -2
View File
@@ -398,8 +398,8 @@ impl Run<'_> {
/// Prepares the resources; returns their folder (`.local/horizon-client/<version>`).
pub fn prepare(options: &Options, log: Log) -> Result<PathBuf, String> {
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)?;