Skip to content
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

RFC: always add .jl to non-absolute paths in find_in_path #12356

Merged
merged 1 commit into from
Jul 30, 2015

Conversation

JeffBezanson
Copy link
Sponsor Member

Possible fix for #12340.

Discussion sought on how to handle absolute paths. My instinct was to leave absolute paths alone, but it also seems slightly odd to add .jl to a/b but not to /a/b. However, this function is only used by require, so I'm not sure names with slashes are ever passed to it at all, in which case we could remove that code.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Jul 29, 2015

deprecated.jl currently passes absolute paths through require as an upgrade path for v0.3 code. the intention with making require accept Symbols instead of Strings was to provide a new API layer that dealt strictly with modules names (files), and did not readily facilitate specification of actual filesystem layout information.

@JeffBezanson
Copy link
Sponsor Member Author

Ah, perfect. So IIUC this change already does the right thing.

@tkelman
Copy link
Contributor

tkelman commented Jul 30, 2015

Let's try this, see if it works better.

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.

None yet

3 participants