ruby-install icon indicating copy to clipboard operation
ruby-install copied to clipboard

install from ruby checkout on local machine

Open fables-tales opened this issue 6 years ago • 2 comments

as far as I can tell, there isn't a way to provide ruby-install with a directory path to a ruby checkout on my machine. It'd be nice to have it be able to install a ruby from a working directory so that I can test out patches in a more long term. Is this a use case that could be supported?

fables-tales avatar Jul 01 '19 18:07 fables-tales

It's not directly supported, but you can pair --src-dir with --no-extract to effectively install a Ruby from a working directory if the directory is named as expected. For example, you can install current trunk with:

git clone [email protected]:ruby/ruby.git ruby-2.7.0dev --depth 1
ruby-install --no-extract --src-dir . ruby-2.7.0dev

There currently isn't a flag that sets the $src_dir/$ruby_dir_name directly for an arbitrarily-named $ruby_dir_name.

havenwood avatar Jul 02 '19 00:07 havenwood

A possibility would be to add a --ruby-src-dir option. Maybe something like:

-S, --ruby-src-dir DIR         Source code directory of a particular Ruby

havenwood avatar Jul 03 '19 00:07 havenwood