forge(build): Compiler run successful with warnings:
but no warnings log
#8548
Labels
A-compiler
Area: compiler
C-forge
Command: forge
Cmd-forge-build
Command: forge build
T-bug
Type: bug
Milestone
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (bdd1137 2024-07-28T00:21:06.817030000Z)
What command(s) is the bug in?
forge build
Operating System
None
Describe the bug
I haven't been able to create a minimal reproduction of the issue yet, but to reproduce:
ci/solc-check
branch (ci: better solc warnings check ethereum-optimism/optimism#11231)cd packages/contracts-bedrock && forge install
forge build --force
The output says
Compiler run successful with warnings:
but not warnings are logged.We thought this may be
ignored_error_codes
usage, but in my simpler repro case, adding an entry toignored_error_codes
was working as expected and resulted inCompiler run successful!
We are trying to use
--deny-warnings
in CI, but can't because this bug causes failure even though no warnings are logged:I also took a quick look at the logs from running with
RUST_LOG=trace forge build --force
but couldn't find anything thereThe text was updated successfully, but these errors were encountered: