-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix incompatibility with --classmap-authoritative #27
Conversation
Any test case/scenario that can be used to automate this failure and verify its correctness? |
@Ocramius I tried to add
Which is the error we wanted to test. So I'll just commit the fix along with the .travis.installer.sh change and that should be it. |
The test should be an additional one, not a replacement for current installation... |
I don't think it's necessary in this case (if something works with --classmap-authoritative I'm sure it will work without it as well). But alright, have it your way. It has to be a separate travis build though. |
Well, people usually run it without Anyway, I will have to take a closer look at this patch, since I might be able to also fix #18 in a similar way. |
Manually rebased and merged, thanks! |
@@ -20,7 +20,10 @@ | |||
"autoload": { | |||
"psr-4": { | |||
"PackageVersions\\": "src/PackageVersions" | |||
} | |||
}, | |||
"files": [ |
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.
using files
is quite bad, because this forces loading the file all the time instead of using autoloading
btw, due to the change done in #33, it is useless, as the classmap generator will contain the class due to the fallback class |
Yeah, can be reverted... |
The proper way to ensure the class made it in the classmap (forgetting #33 which creates the file all the time) would have been to generate the file on the |
Hello, With 1.5.1 and |
@itscaro please write a test case reproducing the failure first |
I tried to replace
--optimize-autoloader
with--classmap-authoritative
for my CI and got this exception:It seems that the Versions class was generated but is missing in the composer autoloading classmap because when I added the file manually in composer.json it works fine: