foundry-rs / foundry-rs/foundry

feat(`forge build`): introduce solc settings dependent caches

Open
#10,673 1 comment 0 reactions 0 assignees View on GitHub
C-forge T-feature T-to-discuss
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
18h 20m
Merged PRs (30d)
510

Description

### Component

Forge

### Describe the feature you would like

When building a multi-chain project the foundry caching is too limited as it will throw away the cache and recompile the whole codebase. Especially on bigger projects this is a huge limitation as for one chain you might need to compile with `london`(e.g. linea), the next with `shanghai`(e.g. metis) and the third with cancun.
On the aave codebase and related projects foundry becomes nearly unusable as on every switch you might need to recompile 500 files bringing development to a halt.

### Additional context

There is a related problem I described here:
https://github.com/foundry-rs/foundry/issues/9840, this feature request tried to separate this into two distinct problems. One is the caching (this issue), while the other one is the inability to reliably run multichain scripts (the other one).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.