Undeclared Altis core dependency breaks composer updating #563
Labels
bug
Existing functionality isn't behaving as expected
developer advocacy
Developer Advocacy related tasks
Previously there was an issue where local server became dependent on Altis Core, but the package was undeclared: #501 This is not the same problem, but a consequence of the resolution implemented.
The resolution for this was not to declare the dependency as a dependency though, and an alternative method was used.
Now, when upgrading the Altis local server package, because v13 still doesn't declare Altis core as a dependency it isn't installed and the command fails with the warning that was added to resolve that issue.
However, this also puts the project in a limbo state where the required package cannot be installed. All attempts to install
altis/core
via composer commands fail as the previous resolution interrupted package installation/removal processes.The immediate result is that it tries to scan the local server package folder for files to autoload but fails because it was removed, then suffers a hard crash because it can't load
wp-config.php
from the package folder.So now I'm stuck, to install
altis/core
I need to installaltis/core
. Fixing this forced me to nuke myvendor
folder.Steps to reproduce:
altis/core
tocomposer.json
composer update
to install the new packages and upgrade the old onesThe text was updated successfully, but these errors were encountered: