-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Reduced config leads to error #167
Comments
Are you sure you are on the latest version? Otherwise make sure your bin file {
"bin": ["bin/puppet-enc"]
} |
box version 3.0.0-alpha.3 adding the section to my
building the phar with the reduced config leads to a broken phar now:
maybe related with symfony/symfony#26845 havn't tried it with this box 3.x will try it as soon as the small problems i currently have are fixed |
If you have any info/reproducer about it that would be very helpful.
It is also possible that the default config doesn't cut it. It has been designed to infer as much info as possible from the |
Just thought of it, could it also be that the application is executed in the wrong environment? I.e. when booting inside the PHAR, it detects that the dumped container is outdated and tries to dump it again |
don't think so. env in the puppet-enc is hardcoded (if phar do not use env, if env is not set use prod)
and this is my "makefile"
|
I have exactly the same issue in phpdocumentor for some reason the files contain some of my source classes are missing. I have warmed my cache before building the phar
Classes that are missing:
But other classes in the same namespace are in? |
Oh I see. I think this is due to a feature of Box: it tries to be smart and exclude the useless files when you let Box pick up the files, see the code here. However I found out when trying to build the PHAR for PHP-CS-Fixer that it excludes too much files, like here I'll submit a patch for it ASAP, it's kinda ready but I would like to add more tests to ensure not too many files are excluded. I'll cc you in the PR so that you can check it in case you find some cases I might have missed |
I would be happy to help you out with a PR, however I'm not sure how to fix this in the right way. |
The most immediate workaround I think is to not let Box pick the files for you, so you would need to specify the file to includes using the |
The finder configuration was wrongly excluding some legitimate files. Closes box-project#167
The finder configuration was wrongly excluding some legitimate files. Closes #167
->
->
The text was updated successfully, but these errors were encountered: