-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(forge build): cache project selectors by default #10651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(forge build): cache project selectors by default #10651
Conversation
b28c4e5
to
cda756f
Compare
Calls `cache_local_signatures` function like the "forge selectors cache" command.
cda756f
to
a70c367
Compare
--selectors_cache
optionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Confirming the test correctly asserts, without caching the selectors it fails to decode
…ptional `cache_dir` No more need to unwrap the option value returned foundry's `config` crate
b519bf6
to
fd92f8c
Compare
crates/cli/src/utils/cmd.rs
Outdated
let Some(cache_dir) = cache_dir else { | ||
eyre::bail!("Failed to get `cache_dir` to generate local signatures."); | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated cache_local_signatures
in a separate commit, squash it if you think it's not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, lgtm! Made a small nit re cache dir in cache sigs fns
Motivation
Resolve #10640
Solution
Calls
cache_local_signatures
function like the "forge selectors cache" command.Remark
cache_local_signatures
function has been updated to accept an optionalcache_dir
, no more need tounwrap()
the option value returned foundry'sconfig
crate.PR Checklist
Added Documentation