Allow plugins to put gems inside PluginGemfile
|Assignee:||Jean-Baptiste Barth||% Done:|
Having plugins put their gem requirements in Gemfile means that doing anything which involves Bundler inside the plugin directory (eg
rake redmine:plugins:test) breaks.
Could Redmine's own Gemfile be changed so that it looks for files names, say,
PluginGemfile as well?
#2 Updated by Jean-Baptiste Barth about 5 years ago
- Assignee set to Jean-Baptiste Barth
Obviously you shouldn't run redmine rake tasks directly inside plugins. Bundler is not broken inside plugins per se. As plugins cannot run without redmine core, commands should be run from redmine core and optionnally limit effects to a specific plugin (with
NAME=redmine_foo for instance).
Renaming things in a non-standard fashion would break plugins possible integration as rubygems which is not better I think.
#3 Updated by Harry Garrood about 5 years ago
At the moment you shouldn't, but it would certainly be nice (and be less confusing for plugin authors) to be able to.
I don't see how it would break possible integration with rubygems -- it certainly wouldn't be the first gemfile to not be called Gemfile:
bundle installhas a
--gemfile=FILEswitch to allow you to use files with different names.
- Here: https://github.com/grosser/fast_gettext/tree/master/gemfiles is an example of a repository which contains multiple Gemfiles so that CI tests can be run against each set of gems.
#7 Updated by Jean-Baptiste Barth almost 4 years ago
- Status changed from New to Closed
- Target version set to 2.6.0
- Resolution set to Fixed
@Robin: not really, the requested feature is actually to be able to avoid the "Gemfile" file which has a specific meaning for bundler, so you could run bundler commands inside plugins without having bundler cry.
The feature was added in r13337.