ronin-rb / ronin-repos

Third-party git repository support for ronin.
https://ronin-rb.dev
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Add the ability of detecting a Gemfile and running `bundle install` #4

Closed postmodern closed 2 years ago

postmodern commented 2 years ago

It should be possible to put a Gemfile in a repository, and run bundle install when the repository is installed. Gems should probably be installed into a local vendor/bundle directory or possibly a shared ~/.cache/ronin-repos/vendor/bundle directory.

Must also run bundle install after a repository has been updated.

postmodern commented 2 years ago

This currently isn't possible with how bundler works. Bundler will raise an exception if a gem of a different version is already loaded. Bundler will also lock down $LOAD_PATH to prevent loading gems outside of the gem file.