Package conflict with installed extension where replaces
is used
#161
Labels
maintainer investigating
This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!
I think this follows on from #150 - my test extension
asgrim/example-pie-extension
usesreplace
, and this is causing issues.Steps to reproduce:
bin/pie install -v asgrim/example-pie-extension
)bin/pie install -v xdebug/xdebug
)Expected results:
xdebug
should be installedActual results:
Observations:
\Php\Pie\DependencyResolver\ResolveDependencyWithComposer
; so the issue comes from the Composer Installer\Php\Pie\ComposerIntegration\ComposerIntegrationHandler
0.1.0
(I never updated thePHP_EXAMPLE_PIE_EXTENSION_VERSION
constant to be the actual version) but I don't think this is related; even if they were the same version I think it is just the fact that asgrim/example-pie-extensionreplaces
ext-example-pie-extension, but both are present, so Composer has a little meltdown from itreplace
is already enabled, Composer will report conflict #150 was to exclude the ext being installed from the reported list of extensions for the\Php\Pie\ComposerIntegration\PhpBinaryPathBasedPlatformRepository
, but I don't think this is the right approach. I think perhaps something like: work out if a Composer package (asgrim/example-pie-extension) does areplaces
for an extension (example_pie_extension) and exclude all of those when building the platform inPhpBinaryPathBasedPlatformRepository
replaces
incomposer.json
, which checking into the Packagist extensions list shows that there are only two extensions using this at the moment (asgrim/example-pie-extension, solidworx/aspect), so it is not (yet) a widespread problem at the moment.The text was updated successfully, but these errors were encountered: