-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compiler: fix require relative path resolution #7758
Compiler: fix require relative path resolution #7758
Conversation
f02897c
to
b12e734
Compare
Cool, I thought I implemented something wrong but it turned out we had a couple of invalid |
end | ||
else | ||
relative_filename = "#{relative_to}/#{filename}" | ||
return unless relative_to.is_a?(String) |
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 know this was in the original code, but why not have relative_to be typed to a String right in the signature?
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.
Good point. I will do this, I think it will simplify code (I thought it was being passed other things than String
or Nil
but it doesn't seem to be the case). Thanks!
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.
Done!
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.
Actually, never mind. This can be done in a separate PR. If somebody wants to do it, please go ahead.
cce8a54
to
2f53e5b
Compare
Fixes #7408