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

memoize ruby env on disk #373

Closed
wants to merge 1 commit into from
Closed

memoize ruby env on disk #373

wants to merge 1 commit into from

Conversation

skull-squadron
Copy link
Contributor

Closes #369

@skull-squadron
Copy link
Contributor Author

(The build on mac was already broken.)

@@ -42,13 +58,12 @@ function chruby_use()
export RUBY_ROOT="$1"
export RUBYOPT="$2"
export PATH="$RUBY_ROOT/bin:$PATH"
local ruby_cached_env="$RUBY_ROOT/.ruby_env"
Copy link
Owner

Choose a reason for hiding this comment

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

You won't always have write access to the ruby's root.

Choose a reason for hiding this comment

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

If this were made configurable by the user (opting out of it e.g. by not providing a RUBY_ENV_CACHE), could it be merged then?

@skull-squadron skull-squadron closed this by deleting the head repository Feb 2, 2023
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.

chruby.sh's use of eval is painfully slow with JRuby
3 participants