Merge pull request #185 from Online5277/fix/prepare-relative-root

Resolve relative preparation roots before running Java exporters
This commit is contained in:
Ludovic Marie
2026-10-14 23:04:32 +02:00
committed by GitHub
+2 -1
View File
@@ -398,7 +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 = &options.root;
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)?;