Passing arguments to ruby-build
- Dominant language
- Shell
- Stars
- 734
- Forks
- 156
- Avg merge
- 17h 6m
- Merged PRs (30d)
- 1
Description
**TL;DR**
I'd like to keep the source directory and the tarball file [ruby-build](https://github.com/rbenv/ruby-build) downloads when running,
```
asdf install ruby 2.5.1
```
Scanning through the [README.md](https://github.com/rbenv/ruby-build/blob/master/README.md) I came across how build environment variables can be passed to **ruby-build** however, off the top of my head, I couldn't see or understand how I could pass an argument or flag to **ruby-build** more specifically the, the `-k` or `--keep` which would allow me to keep the tarball and extracted source directory of the tarball when running the above ☝️mentioned **asdf** command.
Didn't really see how a command flag could be passed to the the **ruby-build** command, so I'm not sure if I should be pointing the finger here, or pointing the finger at [**ruby-build**](https://github.com/rbenv/ruby-build#custom-build-configuration).
It'd sure be swell, 🌈🦄if asdf supported passing flags to the tools that are building the languages, ie. the scenario I am describing, however I can also see how it could be a quick fix for the ruby-build guys to implement another **custom build configuration** variable for this situation, but I think [**this**](https://github.com/asdf-vm/asdf-ruby/blob/master/lib/utils.sh#L41-L42) would still be a glaring issue even if a **custom build configuration** was added for keeping the downloaded tarbabll and source directory with **ruby-build**, thus bringing this conversation back to the original thought, it sure would be nice if asdf could or would support passing flags to the build tools that the plugins rely on.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the asdf install ruby 2.5.1 flow, the linked README.md guidance on ruby-build configuration, and lib/utils.sh at lines 41-42. Trace how the plugin invokes ruby-build and determine how the requested keep behavior or tool flags should be represented; done means the command can preserve the tarball and extracted source directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, shell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100