https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-06-09T03:44:09ZRedmineRedmine - Feature #31538: Allow a plugin to be installed in the directory different from the plugin idhttps://www.redmine.org/issues/31538?journal_id=922872019-06-09T03:44:09ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/31110">Patch #31110</a>: Raise an exception if the plugin directory name differs from the plugin id</i> added</li></ul> Redmine - Feature #31538: Allow a plugin to be installed in the directory different from the plugin idhttps://www.redmine.org/issues/31538?journal_id=922892019-06-09T04:53:11ZGo MAEDA
<ul><li><strong>Tracker</strong> changed from <i>Defect</i> to <i>Feature</i></li><li><strong>Subject</strong> changed from <i>stable plugin tarball can't install after #31110</i> to <i>Allow a plugin to be installed in the directory different from the plugin id</i></li><li><strong>Category</strong> changed from <i>Plugin Request</i> to <i>Plugin API</i></li><li><strong>Target version</strong> set to <i>Candidate for next major release</i></li></ul><p>Sho HASHIMOTO wrote:</p>
<blockquote>
<p>After <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Raise an exception if the plugin directory name differs from the plugin id (Closed)" href="https://www.redmine.org/issues/31110">#31110</a>, we can't install plugin tarball like "foo-plugin-x.y.z" without rename.</p>
</blockquote>
<p>Even without <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Raise an exception if the plugin directory name differs from the plugin id (Closed)" href="https://www.redmine.org/issues/31110">#31110</a>, many plugins don't work if a plugin with the id "foo-plugin" is installed under the directory other than "plugins/foo-plugin".</p>
<p>Anyway, your patch which allows plugins to be placed under any directory name is a nice improvement. I would like to get more feedbacks from plugin developers.</p> Redmine - Feature #31538: Allow a plugin to be installed in the directory different from the plugin idhttps://www.redmine.org/issues/31538?journal_id=922902019-06-09T07:24:02ZSho HASHIMOTO
<ul></ul><blockquote>
<p>Anyway, your patch which allows plugins to be placed under any directory name is a nice improvement. I would like to get more feedbacks from plugin developers.</p>
</blockquote>
<p>As Go MAEDA san knows, Redmine::Plugin.register is called from init.rb. So, my patch indicates plugins/foo-plugin only if init.rb was required from other codes..</p>