crytic / solc-select

Manage and switch between Solidity compiler versions
GNU Affero General Public License v3.0
752 stars 100 forks source link

[Bug-Candidate]: #214

Closed goheesheng closed 1 month ago

goheesheng commented 1 month ago

Describe the issue:

Unable to compile contracts or libraries for contracts ^0.8.20,

Code example to reproduce the issue:

forge test or forge build

Version:

0.8.24 and 0.8.27 both also cause this issue

Relevant log output:

Encountered invalid solc version in lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol: No solc version exists that matches the version requirement: ^0.8.21
elopez commented 1 month ago

Hi! Judging by the error message and your description, this seems to be an error from foundry, and therefore you are probably not using solc-select. You can try upgrading your foundry installation by running foundryup and see if that fixes the problem.

goheesheng commented 1 month ago

Yup thanks