foundry-rs / compilers

Utilities for working with native solc and compiling projects.
Apache License 2.0
64 stars 37 forks source link

source.ast.absolute_path is not an absolute path #9

Open odyslam opened 10 months ago

odyslam commented 10 months ago

This was surfaced in foundry.

The absolute_path is not absolute, but it's the relative path (e.g KillProtocol.s.sol). The fs_read will fail, unless forge script runs from the directory in which the project lives.

Maybe it should change it's name to relative_path and then append it in relation to the root in forge?

1010adigupta commented 9 months ago

i would like to take this