-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
simplify init #288
base: main
Are you sure you want to change the base?
simplify init #288
Conversation
Did you try to generate the phar file without those lines and verify that it works fine?
|
I tried to generate the phar (with But if I understand correctly the github action make a smoke test on the phar: |
The smoke test was done for that: test the phar generation. |
Which error do you get @fain182 ? |
} | ||
|
||
require PHPARKITECT_COMPOSER_INSTALL; | ||
require __DIR__ . '/../vendor/autoload.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK the only thing the above code is supposed to do is setting PHPARKITECT_COMPOSER_INSTALL as a way to say the package was installed via composer 🤔
To me it can be safely removed
On the other hand, I am not totally sure about adding this line: what is it effect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me seems more like:
- try to find and autoloader (why? it's always in the same place)
- setup a warning if
composer install
has not been executed yet - include the autoload
The situation is different if we are searching the autoload of the project ouside of the phar, but I don't think it's this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are totally right... let's remove it then
the first error is:
If I correct the permission, it says something strange about PHP versions... |
If I remember correctly, the Box version we have works fine php 7.1, which is the version we use to generate the phar. Other 7.x version should work, 8.x version will not. More recent Box version will work with php 8, but they dropped the support for php 7.1 Long story short, if you want to generate the phar you need to have php 7 |
I am not sure about this one, the different includes seems redundant, without this code the CI is green...
Any additional test we can make to check if this is useful?