Skip to content
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

fix: absolute paths in build info #121

Merged
merged 1 commit into from
May 7, 2024
Merged

fix: absolute paths in build info #121

merged 1 commit into from
May 7, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented May 7, 2024

Closes foundry-rs/foundry#7878

Removes paths stripping logic from solc implementation, instead we now use CompilerInput::strip_prefix and CompilerOutput::join_all directly in compile_* functions, and only join output paths after writing build info.

@klkvr klkvr requested review from DaniPopes and Evalir as code owners May 7, 2024 16:04
@klkvr klkvr requested a review from mattsse May 7, 2024 16:06
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines +56 to +57
/// Strips given prefix from all paths.
fn strip_prefix(&mut self, base: &Path);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense

@mattsse mattsse merged commit f56a318 into main May 7, 2024
14 checks passed
@DaniPopes DaniPopes deleted the klkvr/fix-build-info branch May 7, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build-info file's solc output has contracts with absolute paths
2 participants