Foundry.toml remappings broken: forge build/test fail out of the box

Component: uniswap-v2-contracts @ 5f4365a, foundry.toml (remappings); dependencies/ contains forge-std-1.9.7 (not 1.9.2).

Description: The remapping points to forge-std-1.9.2/=dependencies/forge-std-1.9.2/, but the existing directory is dependencies/forge-std-1.9.7. Worse: tests/scripts import forge-std/Test.sol / forge-std/Script.sol, but there is no remapping for the forge-std/ prefix at all. Result: forge build fails immediately with Error (6275): Source "forge-std/Test.sol" not found.

Impact: The repo cannot be built or tested without manual intervention. Not a vulnerability; a tooling/build problem.

Reproduction: forge build in the repo root → error 6275 above (observed directly).

Severity: Low. Reason: pure DX/build config, does not touch runtime bytecode.

Recommendation: Align versions: forge-std/=dependencies/forge-std-1.9.7/src/ (or update [dependencies] + remappings to the actually vendored version).

Verification: VERIFIED.

1 Like