Creating the phar file isn't working
cavo789 opened this issue · 1 comments
cavo789 commented
Hello
I'm trying to build the .phar
file version and I'm thus following the guide as described in your README.md file (https://github.com/php-parallel-lint/PHP-Parallel-Lint#create-phar-package)
- git clone https://github.com/php-parallel-lint/PHP-Parallel-Lin
- composer update
- Download of box is OK
- Building the phar is KO with the following message :
php box.phar build
Building...
[RuntimeException]
failed to get contents of 'C:\temp\PHP-Parallel-Lint\parallel-lint.php'
build [-c|--configuration="..."]
- The
box.json
file mentionparallel-lint.php
for themain
key while the file didn't have the.php
extension. So, I edit the file and remove the.php
extension. I've thus"main": "parallel-lint",
inbox.json
- I run
php box.phar build
once more and now building is correct.
But, now, running php parallel-lint.phar
throw an error:
PHP Fatal error: Cannot declare class ComposerAutoloaderInit8d3d5124130cbc6652f1aad8a66cf923, because the name is already in use in phar://C:/temp/PHP-Parallel-Lint/parallel-lint.phar/vendor/composer/autoload_real.php on line 5
Can you take a look please ?
Note: I've also tried https://github.com/box-project/box for creating the phar but here too, it doesn't work.
cavo789 commented
Sorry had a 404 error when submitting this issue and by trying again, I've created two post; sorry for this