-
Notifications
You must be signed in to change notification settings - Fork 5
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
Question about shadow dependencies #109
Comments
Using |
This is what I'll add as extra: when running on package-b I got expected results
|
@janedbal But if I don't add
|
That looks like some issue with local dependencies, I'll try to reproduce. Thanks. |
I just tried simulating your issue, but didn't encounter your problem. Are you sure you really use stuff from Some minimal reproduction repository would be best here. |
I've anonymised at least minimal two repositories for demo, and I 'll give you now the results : From running
|
I was able to simulate this issue with symlink, but only when the classes in I made a draft of a fix here: #112, can you check if it resolves your issue? |
Just tested your branch |
Would you mind pushing the anonymized example somewhere public where I can clone it and debug it locally? |
Sorry, I've already gave you all info yesterday. https://tmpfiles.org/dl/4524727/package-a.tar |
The problem is that you have case mismatch in
This caused the issue with unused dependency being reported. I'll think if this can be fixed, but I'd consider this an error. PHPStan reports this: https://phpstan.org/r/d1b9d2ea-ce7b-4624-852d-fc7c7e391e48 |
@janedbal Thanks for your analysis (I appreciate a lot) |
Hello,
After checking a little the source code of this repo, I've at least one question about shadow dependencies (at end of this report).
Here is my anonimized example : Four packages developed on same time with a single responsability on each one !
vendor-a/package-a
vendor directory structure :composer.json
of main package with additional packages (linked) as follows :composer.json
of package-b :With Configuration like :
I got results as follows :
As we are able to load source code with Composer Autoloaders, why dependencies of package-b are considered as shadow while there are declared as direct in
package-b/composer.json
?The text was updated successfully, but these errors were encountered: