-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
BUGFIX: Always run composer from Flow root path #1837
Conversation
From the original PR description:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this approach but i run into trouble when running
./flow package:create --package-key Foo.Baz
Result:
Class 'Composer\Console\Application' not found
Type: Error
File: Packages/Framework/Neos.Flow/Classes/Package/PackageManager.php
Line: 394
I added the repo to the composer.json
and ran composer update
which lead to composer/composer
be installed but some weird info messages are shown.
Seems i had composer issues, will add a proper review now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change and can confirm that it works. Should have been like this in the first place.
@kdambekalns can you verify that the composer/composer dependency is introduced in a way that works with the subsplits.
Will do… |
From looking at it it seems perfect. The dependency is declared with I just wonder why we ever had Flow depend on itself as a dev-dependency… 🤷♂️ |
This is great, but also shows that now Flow will depend on composer, I guess we should move package creation out of the package manager ASAP and into the flow/kickstarter so you can get rid of that and the composer requirement when you want to. Alas not related to this change which definitely brings things in the right direction. |
Isn't that an opportunity? I am quite sure we have some dependency-order code that we could delegate, no? |
Hahaha, good idea, will have to look into that and see if we could actually do that to order packages for settings and such. |
This bugfix ensures, that the
composer require
command always gets executed in the Flow root path (by calling composer require with the --working-direcory flag set toFLOW_PATH_ROOT
.)It also introduces the
composer/composer
package to the codebase to replace theexec
command.Fixes #1832
Fixes #1778