I have upgrade safety validation tests and it stopped working. I'm using openzeppelin-foundry-upgrades
and openzeppelin/contracts-upgradeable
version `4.9.6.
I carefully followed all the installation and configuration steps, and everything was working perfectly.
However, it has suddenly started failing with the following error
[Revert] revert: Failed to run upgrade safety validation: sh: openzeppelin-upgrades-core: command not found
I didn’t upgrade forge-sdt
or any other library.
My test simply looks like:
function test_validateUpgrade() external {
Options memory ops;
ops.referenceContract = "ContractA.sol:ContractA";
ops.unsafeAllow = "delegatecall";
Upgrades.validateUpgrade("ContractB.sol", ops);
}
Environment
Foundry forge 0.2.0
openzeppelin/contracts-upgradeable 4.9.6
macOs sonoma 14.5