From 59bfffe5fed1518dc49e63117cf35fbd0de68233 Mon Sep 17 00:00:00 2001 From: Omar Date: Tue, 4 Nov 2025 06:13:48 +0300 Subject: [PATCH] Fix the working directory path canonicalization (#204) * Update the commit hash of resolc compiler tests * Fix an issue with file errors in substrate export-chainspec * Update the resolc compiler tests * Fix the working directory canonicalization --- crates/config/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index 5964b70..a12e724 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -16,6 +16,7 @@ use alloy::{ primitives::{B256, FixedBytes, U256}, signers::local::PrivateKeySigner, }; +use anyhow::Context as _; use clap::{Parser, ValueEnum, ValueHint}; use revive_dt_common::types::{ParsedTestSpecifier, PlatformIdentifier}; use semver::Version; @@ -1079,7 +1080,10 @@ impl FromStr for WorkingDirectoryConfiguration { fn from_str(s: &str) -> Result { match s { "" => Ok(Default::default()), - _ => Ok(Self::Path(PathBuf::from(s))), + _ => PathBuf::from(s) + .canonicalize() + .context("Failed to canonicalize the working directory path") + .map(Self::Path), } } }