-
Notifications
You must be signed in to change notification settings - Fork 68
fix: allow single sol file remappings #295
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
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.
changes make sense to me + i don't see any unintended downstream effects
}); | ||
|
||
if !s.ends_with('/') { | ||
if !s.ends_with('/') && !s.ends_with(".sol") { |
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.
can we extract these conditions to a helper function?
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.
added in 49289cc
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 see, that makes sense,
agree with @DaniPopes , we can make this a smol helper fn and ideally reference this pr in the fn docs
df99349
to
49289cc
Compare
ref foundry-rs/foundry#6706
tested and confirm solves foundry-rs/foundry#8499 too
/
to remappings if single .sol file remapped - feat: allow single file remappings foundry#6706 (comment)stripped_import
is empty then do not join when resolving library import as will append/
- feat: allow single file remappings foundry#6706 (comment)forge remappings
properly display remappings@ens/utils/BytesUtils.sol=src/BytesUtils.sol