foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.33k stars 1.76k forks source link

forge compiles despite unresolved imports #9272

Open adhusson opened 2 weeks ago

adhusson commented 2 weeks ago

Component

Forge

Have you ensured that all of these are up to date?

What version of Foundry are you on?

forge 0.2.0 (57bb12e 2024-11-06T00:26:30.417023000Z)

What command(s) is the bug in?

forge build

Operating System

macOS (Apple Silicon)

Describe the bug

  1. Clone this repo
  2. forge build

Some imports will be noted as unresolved by forge, but compilation + tests will succeed.

May be related to #9271.

zerosnacks commented 2 weeks ago

cc @adhusson nightly has been released, please re-run foundryup

grandizzy commented 1 week ago

reopen as this wasn't something related to the regression introduced, and still reproducible

grandizzy commented 6 days ago

this happens because of how imports recurse is handled - that is capped at project root