-
Notifications
You must be signed in to change notification settings - Fork 810
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
Build: composer dependencies added to production build #18695
Comments
Arf, I was about to add an update on my original issue you mentioned #13497, I can't deploy anymore (again)... 😅 @jeherve Indeed, the That said, whichever the solution chosen, I'm believe the conflict between a composer installation and its non-standard usage in Jetpack will continue to raise issues. |
Indeed. The The package was useful to maintain back compatibility when Jetpack first switched to autoloading, but at this point it may be interesting to consider not using that package, as most third-party plugins have now moved away from the legacy classes and functions used in the compat package ( Internal reference: p9dueE-1gA-p2 Still, even if we got rid of the compat package, it may still be worth considering using |
👍
Also here:
|
@jeherve I'd love to help on this, but I need to know how do you prefer to manage |
I think it may make sense to rely on Composer's |
@jeherve I've done some hard research about
The script to publish package to their own repo is very (very very) complicated, where the change have to be written? |
This avoids install issues described in Automattic/jetpack#18695 See also Automattic/jetpack#19080
This has come up in the past (see #13497 and #16399), and we had fixed it with #14900, by removing dependencies from the production
composer.json
when those dependencies were in fact shipped with the plugin, inside thevendor
dir of Jetpack.Unfortunately, we've lost that fix with the monorepo reorganization:
https://github.com/Automattic/jetpack-production/blob/9.4/composer.json#L14
@anomiex had mentioned that we could try Composer's
provide
property, see if it could solve our problem:https://getcomposer.org/doc/04-schema.md#provide
Let's see if that can work for us, instead of having to edit
composer.json
during the build process.The text was updated successfully, but these errors were encountered: