Skip to content

Disentangle two uses of find_in_path: find_package, find_source_file#24320

Merged
StefanKarpinski merged 3 commits into
masterfrom
sk/loading
Oct 25, 2017
Merged

Disentangle two uses of find_in_path: find_package, find_source_file#24320
StefanKarpinski merged 3 commits into
masterfrom
sk/loading

Conversation

@StefanKarpinski

@StefanKarpinski StefanKarpinski commented Oct 24, 2017

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

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

Copy link
Copy Markdown
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
Copy Markdown
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