-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: parse inline config with solang #7431
Conversation
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.
great!
pending @klkvr
with a3b20da this has virtually no perf impact even on huge repos |
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.
nit, lgtm overall
those are not working correctly with inheritance (and never really worked), right?
// id.identifier | ||
let abs_path = id.source.as_path(); | ||
let path = abs_path.strip_prefix(root).unwrap_or(abs_path); | ||
// `id.identifier` but with the stripped path. | ||
let contract = format!("{}:{}", path.display(), id.name); |
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.
id.name can be in the form of "Counter.0.8.23", I am doing id.name.split('.').next().unwrap()
usually, we should probably have a helper for this in compilers
Yes |
Does inline config not work at all with inheritance, or it just doesn't properly override it? For either answer we should just document any limitations in the book https://book.getfoundry.sh/reference/config/inline-test-config#in-line-invariant-configs |
- Update flake.lock to get a foundry bugfix that enables fixes inline config: foundry-rs/foundry#7431 - Only set `RAYON_NUM_THREADS` in prover. Foundry also uses it to set how many tests run in parallel. In addition it sets parallelism for `diff-test` which is run by foundry tests.
- Update flake.lock to get a foundry bugfix that enables fixes inline config: foundry-rs/foundry#7431 - Only set `RAYON_NUM_THREADS` in prover. Foundry also uses it to set how many tests run in parallel. In addition it sets parallelism for `diff-test` which is run by foundry tests.
Fixes #7310