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
Deprecate artichoke-load-path
and replace it with mezzaluna-feature-loader
#2172
Comments
It looks like these (old) issues might be feasible once this work lands because |
Add tests, add APIs, change error behavior. Prep for: #2172.
|
I need to add a separate extension hook loader in |
The existing disk loader in MRI$ echo 'puts "here in the rubylib"' > a.rb
$ ruby -e 'require "a"'
<internal:/usr/local/var/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- a (LoadError)
from <internal:/usr/local/var/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from -e:1:in `<main>'
$ ruby -e 'require "./a"'
here in the rubylib
$ RUBYLIB=. ruby -e 'require "a"'
here in the rubylib Artichoke$ echo 'puts "here in the rubylib"' > a.rb
$ cargo run -q --bin artichoke -- -e 'require "a"'
here in the rubylib
$ cargo run -q --bin artichoke -- -e 'require "./a"'
here in the rubylib
$ RUBYLIB= cargo run -q --bin artichoke -- -e 'require "a"'
here in the rubylib Root CauseThe artichoke/artichoke-backend/src/load_path/native.rs Lines 29 to 35 in 53b84b7
|
artichoke-load-path
andmezzaluna-feature-loader
both provide support for resolving Ruby sources from disk, memory, and using theRUBYLIB
environment variable.mezzaluna-feature-loader
is meant to be a generalization of all of these loaders as well as an implementation ofartichoke_backend::fs
.Work to be done:
mezzaluna-feature-loader
.RUBYLIB
loaders.artichoke_backend::fs
withmezzaluna-feature-loader
.artichoke
andartichoke-backend
to remove the ability to disable theRUBYLIB
loader. Loader is either "full" or in-memory.artichoke-load-path
code,Cargo.toml
entry, and CI steps.The text was updated successfully, but these errors were encountered: