fix Test.toml ledger paths#4530
Conversation
|
@Monti-27 is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR removes the
Confidence Score: 5/5Safe to merge — the change is a three-line removal that corrects a mis-applied canonicalization, and the new tests confirm the fix for both the non-existent and pre-existing directory cases. The deletion removes the only code path that called No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix Test.toml ledger paths" | Re-trigger Greptile |
|
@jamie-osec your views on this |
Fixes #4529
Test.tomlledger paths were canonicalized while parsing, so missing output dirs failed early and existing dirs became absolute.Keep ledger paths relative and only canonicalize validator inputs that Anchor reads.
Tests:
cargo test -p anchor-cli --lib test_toml_keeps_ledger_path_relativecargo test -p anchor-cli --lib test_toml_resolves_account_dir_relative_to_filecargo +nightly fmt --checkcargo clippy -p anchor-cli --lib -- -D warnings