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
Dependencies not mapped correctly #7817
Comments
If you rely on security classes in non-dev env, then why is it in require-dev? That will indeed mean the autoloader is not configured for it when you install with --no-dev. |
@Seldaek but |
Right, sorry I missed the fact that Anyway, moving it to require for now would be a workaround I guess. |
Just for the record, bug is in filterPackageMap in AutoloadGenerator which doesn't take provider/replacer names returned by package->getNames() into account but uses only package->getName() |
Another way to reproduce this issue:
First #7900 fixes this case |
My
composer.json
:Output of
composer diagnose
:When I run this command with no other files or folders in the dir:
I get this output:
And then when I run:
I get this output:
The problem is that the namespace "Symfony\Component\Security" is missing from autoload_psr4.php and autoload_static.php, even though the packages that syfmony/security replaces are dependencies of symfony/security-bundle. Nothing is installed in its place, and we have an unmet dependency.
I have this in a project where symfony/security isn't a dev dependency (I added it later to non-dev project dependencies to work around this issue), but adding it as a dev dependency here was the simplest way to test this.
Package symfony/security is the only dependency package that I have in my composer.lock that is a replacement for other packages and it's the only one with this issue, so I'm guessing that the issue is somewhere where that is resolved, but I'm not familiar enough with the composer codebase to pinpoint it.
The text was updated successfully, but these errors were encountered: