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

Allow user to disable auto reshim with environment variable #434

Open
ChristianLee-Jobber opened this issue Jan 30, 2025 · 0 comments
Open

Comments

@ChristianLee-Jobber
Copy link

Intro

For this line of code here, allow users to skip it with an environment variable. For example:

module ReshimInstaller
  def install(options)
    super
    `asdf reshim ruby` unless ENV["ASDF_SKIP_RESHIM"]
  end
end

Context

I have modularized my code and broken it off into separate gems/engines that all live near the main app. The folder structure resembles the following:

app/
bin/
build/
...
engines/
  engine1/
    app/
    ...
    Gemfile
...
gems/
  gem1/
    ...
    lib/

In order to better manage these gems/ engines which have some interdependencies, I have written a script that can loop through all gems and run bundler commands like bundle update ..., and bundle install.

When using a tool like rbenv, this script will run in a couple of minutes. When using asdf, it takes ~15 minutes, because asdf is calling reshim for every gem/ engine where it will run the bundler command. Allowing an easy way to disable the automatic reshim would be extremely helpful.

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

No branches or pull requests

1 participant