-
Notifications
You must be signed in to change notification settings - Fork 191
[Bug] Double loading symlinked files #3138
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yes, we should be compatible there. |
TODO: - changelog - require (not relative) specs - other specs? closes oracle#3138
closes oracle#3138 Use a hash to cache realpath lookups and another to cache realpath -> feature similar to what was done in CRuby: https://github.com/ruby/ruby/blob/499eb3990faeaac2603787f2a41b2d9625e180dc/load.c#L358-L402 https://github.com/ruby/ruby/blob/499eb3990faeaac2603787f2a41b2d9625e180dc/load.c#L1195-L1289
closes oracle#3138 Use a hash to cache realpath lookups and another to cache realpath -> feature similar to what was done in CRuby: https://github.com/ruby/ruby/blob/499eb3990faeaac2603787f2a41b2d9625e180dc/load.c#L358-L402 https://github.com/ruby/ruby/blob/499eb3990faeaac2603787f2a41b2d9625e180dc/load.c#L1195-L1289
Does this issue happen in practice? |
that was my experience, seemed to be a change in 3.2: |
Consider the same file loaded twice, with and without a symlinked path:
CRuby loads the script once (Output =
Loaded\n
). TruffleRuby loads it twice (Output =Loaded\nLoaded\n
).Is this a bug?
The text was updated successfully, but these errors were encountered: