duplicated installation of `ruby-build` in CI
in the GitLab CI configuration file
at line 21 we have
apt-get install -y rbenv nodejs yarn rbenv **ruby-build**
but immediately after in line 22
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
we are installing ruby-build
again
this is an unnecessary duplication and we could
-
apt install --no-install-recommends
and remove ruby-build in line 21
or
- install
rbenv
andruby-build
entirely manually
why would this matter?
- serves no real purpose to install it twice
- increases time spent by the CI runner on downloading the almost same files
- increases space used by the CI runner on the almost same files
additional notes
-
ruby-build
is already listed as a dependency under the Homebrew formula for rbenv and is sufficiently up to date - from
rbenv
's documentation
Note that the version of rbenv that is packaged and maintained in the Debian and Ubuntu repositories is out of date. To install the latest version, it is recommended to install rbenv using git.