-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
What version of Foundryup are you on?
foundryup: 1.0.1
What command(s) is the bug in?
forge build
Operating System
Linux
Describe the bug
I am attempting to build a file that requires solc 0.8.28 in a tree containing files with =0.8.25 pragmas. None of these files are imported by the file I'm trying to build. Previously, I had pinned Foundry version nightly-59f354c179f4e7f6d7292acb3d068815c79286d1 in our CI to keep things from breaking, but I recently updated our system after I reported #11186 .
Specifically, in the repository https://github.com/0xProject/0x-settler on the e1Ru1o/bridge-factory branch, I am trying to run
FOUNDRY_EVM_VERSION=london FOUNDRY_OPTIMIZER_RUNS=1000000 FOUNDRY_SOLC_VERSION=0.8.28 forge build -vvvv -- src/CrossChainReceiverFactory.sol
On the old, pinned version of Foundry, this works fine. On v1.3.0, there is a wall of errors in the from:
Encountered invalid solc version in $FILE_PATH: No solc version exists that matches the version requirement: =0.8.25
in spite of the fact that they are not imported from src/CrossChainReceiverFactory.sol
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done