Cyfrin / foundry-defi-stablecoin-cu

250 stars 117 forks source link

Error building #71

Closed alexroan closed 7 months ago

alexroan commented 7 months ago

Fresh clone, forge build returns this:

fatal: remote error: upload-pack: not our ref 22b7223ad80d8c3319bb833ffd3e4e9ddddf4c7d
fatal: Fetched in submodule path 'lib/foundry-devops', but it did not contain 22b7223ad80d8c3319bb833ffd3e4e9ddddf4c7d. Direct fetching of that commit failed.
Your project has missing dependencies that could not be installed.
[⠃] Compiling...2024-04-11T07:56:13.526404Z ERROR foundry_compilers::artifacts: error="/Users/alexroan/Documents/Audits/foundry-defi-stablecoin-f23/lib/openzeppelin-contracts/contracts/mocks/ERC20Mock.sol": No such file or directory (os error 2)
[⠊] Compiling...
Error:
failed to resolve file: "/Users/alexroan/Documents/Audits/foundry-defi-stablecoin-f23/lib/openzeppelin-contracts/contracts/mocks/ERC20Mock.sol": No such file or directory (os error 2); check configured remappings
    --> /Users/alexroan/Documents/Audits/foundry-defi-stablecoin-f23/script/HelperConfig.s.sol
    @openzeppelin/contracts/mocks/ERC20Mock.sol
PatrickAlphaC commented 7 months ago

Fixed

https://github.com/Cyfrin/foundry-defi-stablecoin-f23/commit/cf9143ab7102e405a3a1f8d41133fbb7ff09facd