Today I discovered by chance that the local version of EPV checks extensions in a different way like the online version of EPV. I use for all examples the GitHub repo from "bb3mobi/washere" so you can reproduce the problem. I use EPV in a WAMP environment by the way.
1. The biggest issue: very different checks
If I check the repo with online EPV I got this:
https://image.ibb.co/f53Sez/Pic-Pick-20 ... -53-54.png
In summary 2 fatals, 1 errors and 65 warnings.
But if I download this repo and copy the extension files in the correct folder "bb3mobi/washere" and check it with local EPV I got this:
Code: Select all
Running Extension Pre Validator on directory ..
Running tests.
Validation: FAILED
Fatal: 0, Error: 0, Warning: 2, Notice: 0
Test results for extension:
Warning: "GPL-2.0" is a deprecated SPDX license identifier, use "GPL-2.0-only" instead. in \bb3mobi\washere\composer.json
Warning: Found potential SQL injection on line 324 in \bb3mobi\washere\core\who_was_here.php
services.yml
and also doesn't check the language files. But why?2. The next difference between online EPV and local EPV: license identifier
The online EPV wants "GPL-2.0" as license identifier
The local EPV wants "GPL-2.0-only" as license identifier
So, what's correct?
3. What exactly does "--verbose" ? And how this can be used?
The help says:
But there is no syntax example and so I tried withIncrease the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--verbose 3
and --verbose=3
but none of them was accepted and I got this:Code: Select all
Exception trace:
() at G:\programme\wamp\www\epv\vendor\symfony\console\Input\ArgvInput.php:229
Symfony\Component\Console\Input\ArgvInput->addLongOption() at G:\programme\wamp\www\epv\vendor\symfony\console\Input\ArgvInput.php:157
Symfony\Component\Console\Input\ArgvInput->parseLongOption() at G:\programme\wamp\www\epv\vendor\symfony\console\Input\ArgvInput.php:82
Symfony\Component\Console\Input\ArgvInput->parse() at G:\programme\wamp\www\epv\vendor\symfony\console\Input\Input.php:55
Symfony\Component\Console\Input\Input->bind() at G:\programme\wamp\www\epv\vendor\symfony\console\Command\Command.php:214
Symfony\Component\Console\Command\Command->run() at G:\programme\wamp\www\epv\vendor\symfony\console\Application.php:960
Symfony\Component\Console\Application->doRunCommand() at G:\programme\wamp\www\epv\vendor\symfony\console\Application.php:255
Symfony\Component\Console\Application->doRun() at G:\programme\wamp\www\epv\vendor\symfony\console\Application.php:148
Symfony\Component\Console\Application->run() at G:\programme\wamp\www\epv\src\EPV.php:30
If i use this:
# php src/EPV.php run --github="bb3mobi/who-was-here"
then I got this:
Code: Select all
Checkout https://github.com/bb3mobi/who-was-here from git on branch master.
In Admin.php line 138:
Error while initializing repository: fatal: unable to access 'https://github.com/bb3mobi/who-was-here/': Could not resolve host: github.com
run [--dir [DIR]] [--git [GIT]] [--github [GITHUB]] [--branch [BRANCH]] [--debug]
# php src/EPV.php run --git="https://github.com/bb3mobi/who-was-here"
then I got this:
Code: Select all
In Admin.php line 138:
Error while initializing repository: fatal: unable to access 'https://github.com/bb3mobi/who-was-here/': Could not resolve host: github.com
run [--dir [DIR]] [--git [GIT]] [--github [GITHUB]] [--branch [BRANCH]] [--debug]
# php composer.phar update
and also
# php composer.phar self-update