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

install from ruby checkout on local machine #347

Open
fables-tales opened this issue Jul 1, 2019 · 2 comments
Open

install from ruby checkout on local machine #347

fables-tales opened this issue Jul 1, 2019 · 2 comments
Labels

Comments

@fables-tales
Copy link

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?

@havenwood
Copy link
Collaborator

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants