On Saturday, April 20, 2013 at 1:49 PM, Thomas Bruederli wrote:
On Sat, Apr 20, 2013 at 2:17 AM, till <klimpong@gmail.com> wrote:On Saturday, April 20, 2013 at 1:35 AM, rodrigo wrote:Is there any particular reason the default set of included (but notactivated) plugins has not been separated out from the main repositoryinto repositories of their own? I would even argue that skins, asidefrom the default, should be separate repositories. My group manages ourinstallation with git and it would make my life a ton easier if thiswere the case.I don't remember when they were put back into the "master". They used to bemore separate.Wrong. Plugins developed and maintained by the Roundcube developersalways have been part of the master git repository together with thecode code. The planned composer-based plugin repository is meant for3rd party plugins. The main goal of that repository is to allow plugindevelopers to publish their modules on a centralized platform andallow Roundcube sysadmins to pull them into their local installations.That isn't necessary for core plugins because they're already part ofthe distribution package.
We can easily spin them off with a git subtree split — also keeping thehistory, etc.. But yeah, in its current state composer requires individualrepositories and so on. I guess this is more or less of question of handlingthese externals.I saw an answer to "[RCD] update.sh clobbering custom plugin configs inmain.inc.php?" earlier today, suggesting that a config file within theplugin should be edited. Plugins are basically vendor code, wouldn't itmake more sense to make a plugin_name.inc.php within /config, and have aplugin standard (in the form of a config grabber method) that grabs theappropriate config file? This way, the plugin could be updated bycomposer or git, and there'd be no worry about overwriting configs, orediting vendor code. It'd encourage plugin writers to keep their configseparate from the roundcube config, because there'd be an easilyaccessible function for it.We already have that separation but not in the centralized /configdirectory but in the individual plugin folders. And this basicallyshould survive an update via composer.I'd also like that. I think up until now the configuration part hasn't seemtoo much love and is very legacy. But if you have ideas, feel free to bouncethem around. :)There's a general refactoring of the config system planned:Please add your inputs and comments there.~Thomas_______________________________________________Roundcube Development discussion mailing list