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.29k stars 1.75k forks source link

feat(anvil): Set anvil fork cache location (`--cache-path`) #8654

Closed Szymx95 closed 4 days ago

Szymx95 commented 2 months ago

Component

Anvil

Describe the feature you would like

Currently the cache location is fixed to ~/.foundry/anvil/rpc. It would really simplify the workflow (for example for running fork tests on CI) if we could set custom directory for the cache location. This is related to #4989 however the issue was related to taking too much space.

Another use case would be to save cache on different drive without the need for symlinking.

Additional context

No response

onlydustapp[bot] commented 2 months ago

Hey @leovct! Thanks for showing interest. We've created an application for you to contribute to Foundry. Go check it out on OnlyDust!

Akbar30Bill commented 2 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I have experience with foundry tooling, and I recently began my journey with Rust. I believe this makes for an excellent opportunity to contribute to the development of blockchain tools.

How I plan on tackling this issue

I would make the Anvil cache location configurable, with a default setting that points to .foundry if no specific location is provided.

gdnathan commented 1 month ago

Hi, is this issue still open ? I'd like to contribute to it

PedroRosalba commented 6 days ago

Can I take this from here?

zerosnacks commented 4 days ago

Marking as duplicate of https://github.com/foundry-rs/foundry/issues/3512 which aims to add an Anvil cache path