-
Notifications
You must be signed in to change notification settings - Fork 22
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
Building phar is not possible #42
Comments
@grogy Would it be an idea to do a test build of the phar in the CI run and let it upload the resulting file as an artifact ? Especially easy to do once switched to GH Actions instead of Travis. The phar from a CI run on a tag could then be added to the tag and if people want to use the phar to test PRs and such, all they'd need to do would be to get the artifact from that build. |
@jrfnl original idea, thank you. The result can look like assets on https://github.com/vrana/adminer/releases ? |
Hi That's a great news! I'm waiting for the I can confirm, I can create the phar too after having modified two files: diff --git a/box.json b/box.json
index 951802d..8c6fc81 100644
--- a/box.json
+++ b/box.json
@@ -5,7 +5,7 @@
"Herrera\\Box\\Compactor\\Php"
],
"extract": false,
- "main": "parallel-lint.php",
+ "main": "parallel-lint",
"files": [
"LICENSE"
],
diff --git a/parallel-lint b/parallel-lint
index 0d77fdb..6c1a2bf 100755
--- a/parallel-lint
+++ b/parallel-lint
@@ -49,6 +49,7 @@ foreach ($autoloadLocations as $autoload) {
if (is_file($autoload)) {
require_once($autoload);
$loaded = true;
+ break;
}
}
|
@cavo789 One thing spotted doesnt work is the colors, may be related to #40 Appears to fail the PHP-Parallel-Lint/src/Output.php Line 391 in 287d0b4
not sure how to get around that yet |
The |
Is released new version 1.3.0 and is created PHAR https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/tag/v1.3.0 |
This issue can be closed right? |
Yes, I close it as resolved. Thank you |
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)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
php box.phar build
once more and now building is correct.But, now, running
php parallel-lint.phar
throw an error: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.
The text was updated successfully, but these errors were encountered: