Skip to content

All -I provided relative paths shold be made absolute#7683

Merged
enebo merged 4 commits intojruby:masterfrom
enebo:fix_I_option
Feb 21, 2023
Merged

All -I provided relative paths shold be made absolute#7683
enebo merged 4 commits intojruby:masterfrom
enebo:fix_I_option

Conversation

@enebo
Copy link
Member

@enebo enebo commented Feb 21, 2023

All -I provided relative paths shold be made absolute

@enebo enebo added this to the JRuby 9.4.2.0 milestone Feb 21, 2023
We failed a test which assumed -I '.' would add '.' to
LOAD_PATH.  MRI will add the dir that '.' represents
/home/enebo vs /home/enebo/.

Canonicalizing this makes that match but this could yield
an incompatibility with more exotic directories which link
perhaps?
@enebo enebo merged commit 6aec0d7 into jruby:master Feb 21, 2023
@enebo enebo deleted the fix_I_option branch February 21, 2023 23:42
enebo added a commit to enebo/jruby that referenced this pull request Mar 13, 2023
…y-complete.

I need to still run this on windows itself but
jruby#7683 only use File and not
JRubyFile so it had no knowledge of uri:classpath files.  It
also was trying to canonicalize by default.

Solution is to just get absolute path (still need to softlink
test to show that -I will not canonicalize paths) and to not
bother even testing if it is absolute since it is really doing
same amount of work.
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.

1 participant