Skip to content

fix: absolute paths in build info#121

Merged
mattsse merged 1 commit intomainfrom
klkvr/fix-build-info
May 7, 2024
Merged

fix: absolute paths in build info#121
mattsse merged 1 commit intomainfrom
klkvr/fix-build-info

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
@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