gpm: Plugins containing "theme" should not be installed as themes#2913
gpm: Plugins containing "theme" should not be installed as themes#2913drzraf wants to merge 1 commit intogetgrav:developfrom
Conversation
|
(One more thing that would be resolved by #2397) |
|
What do you think of changing the order of the tests (too)? |
|
Will work for me in that specific case. Another possibility is to tighten the match to |
|
I don’t think the order should matter. Matching |
|
@w00fz The check is in here: grav/system/src/Grav/Common/GPM/GPM.php Lines 559 to 596 in c5bef56 It doesn't check anything else but the folder name of zip file if it matches. |
|
Actually the package type checks the |
|
I'm ok with your change @drzraf but could you do the same thing for the plugin check down below? |
|
@w00fz Actually it does not. The check for folder name comes first and the rest of the checks are never made. |
Sommerregen/grav-plugin-themer#6
./bin/gpm -vvv direct-install https://github.com/Sommerregen/grav-plugin-themer/archive/v1.1.0.zipUp to you to evaluate the pattern themes must match, but I felt that
theme-would be reasonable... until all this could be replaced by composer (or a composer plugin like symfony flex).