Sommerregen / grav-plugin-themer

This plugin enables you use different themes on one site individual set per page or collection.
Other
18 stars 1 forks source link

Cannot `direct-install` Themer #6

Open ScottHamper opened 6 years ago

ScottHamper commented 6 years ago

Hey @Sommerregen ,

I use GPM's direct-install command to pin each plugin to a specific version so that my continuous integration pipeline produces more consistent builds. However, for some reason using direct-install with Themer results in a silent failure - GPM claims that it has installed the plugin successfully, but nothing is added to user/plugins.

Here's the command I'm running:

bin/gpm direct-install -y https://getgrav.org/download/plugins/themer/1.1.0

And the output I get:

Preparing to install https://getgrav.org/download/plugins/themer/1.1.0
  |- Downloading package...   100%
  |- Extracting package...    ok
  |- Checking destination...  ok
  |- Installing package...    ok
  '- Success!

I've confirmed that using GPM's install command does install Themer normally, so I don't expect this to be an issue specific to my environment... but who knows!

Sommerregen commented 6 years ago

Well, you did nothing wrong. I just tested the command and you are right. However, this is a Grav core issue. Instead of installing this plugin to user/plugins/themer, it somehow installs it to user/themes/themer. You may have a look in your themes folder ;-) . Can you create an issue on the Grav issue tracker and link it to this one here? It is line GPM.php#L575 causing this issue.