v1.8.7 is a patch release on top of v1.8.6 that fixes two compile cache regressions introduced in v1.8.4 and picks up dependency security fixes.
Fixes
- With dynamic test linking enabled (the default), widening a build after a narrower one, for example
forge build --skip scriptfollowed byforge build, no longer recompiles every cached source. Only the newly included files are compiled, while tests, scripts, and the sources that depend on them are still invalidated when the build context changes (#17841, foundry-rs/foundry-core#277) by @mablr. Fixes #17836. - The compile cache is no longer discarded when the project directory moves or is checked out at a different path, because cached remappings are now stored relative to the project root (foundry-rs/foundry-core#274, foundry-rs/foundry-core#279, foundry-rs/foundry-core#288) by @ninglinLiu, @mablr. Fixes #17829.
Dependencies
- Update foundry-core to
e47676d, which also includes block explorer, wallet, and fork cache fixes such as honoring explorer API keys from the environment, acceptingETH_PASSWORDwithout--keystore, and resolving mixed 0.8 pragmas with Solar.
Security
- Update
tokioto 1.53.3, fixing RUSTSEC-2026-0386 (#17775). - Update
ctutilsto 0.4.5, fixing RUSTSEC-2026-0385 (#17767). - Update
zstdto 0.14.3,zstd-safeto 8.2.0 andzstd-systo 2.1.2, fixing RUSTSEC-2026-0391, RUSTSEC-2026-0398, RUSTSEC-2026-0403 and RUSTSEC-2026-0410 (#17838).
Full Changelog
v1.8.6...v1.8.7
Contributors (3)