Closed gmta closed 7 months ago
I'm not sure the require can be avoided here as it seems this package kinda embeds the entire composer/composer codebase in the phar file created with box.. But I don't see any other usage of it so I'm confused as to why it is required exactly.
Anyway Composer 2.7.4 is now out which hopefully fixes it.
I'd still be happy to discuss about the require of composer/composer with the maintainers here though, if we can get it removed I'd be glad.
Composer is used within Composer.php to generate the composer.json file.
Let me know if you see this can be removed and how.
I guess aside from embedding a composer.phar in your phar, I don't see a good solution.
I'm not sure what this project does but it sounds to me like it should not typically be required in other applications, rather used as a tool (which is I suppose why you ship a phar file)? If so the problem might lie more in documenting this, to ensure people don't just add it as a dependency in their project just to build some sdk once in a while?
If so the problem might lie more in documenting this, to ensure people don't just add it as a dependency in their project just to build some sdk once in a while?
This can be used as a dev dependency or not, but I don't recomend any way of using this project. This can be used with the phar or as a dependency in my opinion.
If Composer 2.7.4 has now fixed the issue, I don't see an issue here anymore.
Please close this issue @gmta if you feel this right. thx
Looking at how it's used here a bit better, it seems like a legitimate use case for having composer as a dependency. With version 2.7.4 out I don't think anything needs changing here.
Composer 2.7.3 introduced a BC breaking change, the effects of which are described here: https://github.com/composer/composer/issues/11940
The maintainer claims it is caused by packages depending directly on
composer/composer
. I'm not aware of the exact reason why this dependency is required, but it would at least be better to depend oncomposer-runtime-api
if at all possible.