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

Disentangle two uses of find_in_path: find_package, find_source_file #24320

Merged
merged 3 commits into from
Oct 25, 2017

Conversation

StefanKarpinski
Copy link
Member

@StefanKarpinski StefanKarpinski commented Oct 24, 2017

These used to be related functionalities, they are no longer related at all. Also remove the load_hook custom loader functionality. This was intended for Pkg3, but ended up not being usable.

@StefanKarpinski
Copy link
Member Author

make test-pkg passes locally and the failure seems to be DC connectivity-related. The other failure seems unrelated and we got all green before I changed the eltype of LOAD_PATH back to String so this should be good to go as soon as @JeffBezanson or @vtjnash take a quick look.

base/loading.jl Outdated
else
name = string(base,".jl")
function find_package(name::String)
endswith(name, ".jl") && (name = name[1:end-3])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base = name[1:prevind(name, end - 2)] (prevind(end - 2) != end - 3)

@StefanKarpinski
Copy link
Member Author

F-it, I'm tired of waiting for the macOS build. This thing works.

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.

2 participants