Error when runnning upgrade safety validation

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);
    }

:computer: Environment

Foundry forge 0.2.0
openzeppelin/contracts-upgradeable 4.9.6
macOs sonoma 14.5

Hi, welcome to the community! :wave:

If possible you can share your scripts at here

Hey thanks, sorry for the lack of context, edited to add some, let me know if it is clear now

This is duplicated from https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades/issues/85, we can continue the discussion there.

1 Like