asdf-vm / asdf-vm/asdf-ruby

Allow user to disable auto reshim with environment variable

Open
#434 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
734
Forks
156
Avg merge
17h 6m
Merged PRs (30d)
1

Description

# Intro
For this line of code [here](https://github.com/asdf-vm/asdf-ruby/blob/059cdee5b02c5a5569a5858e2a379f84dbdb95d7/rubygems-plugin/rubygems_plugin.rb#L5), allow users to skip it with an environment variable. For example:

```ruby
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at rubygems-plugin/rubygems_plugin.rb, specifically the reshim call linked in the issue. Check how the plugin's install flow handles environment variables, then verify that ASDF_SKIP_RESHIM allows users to skip automatic reshim while preserving the current behavior when it is unset.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.