-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpm: Plugins containing "theme" should not be installed as themes #2913
base: develop
Are you sure you want to change the base?
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.zip
Up 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).