Runtime Composer utility \Composer\InstalledVersions::getInstallPath( 'woocommerce/action-scheduler' )
does not work with jetpack-autoloader
#33831
Labels
[Package] Autoloader
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Low
[Status] Needs Author Reply
We would need you to make some changes or provide some more details about your PR. Thank you!
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
None / Other
Quick summary
To load Action Scheduler into one of our plugins we use the following code:
This works if we use the default Composer autoload file:
If we switch to https://github.com/automattic/jetpack-autoloader we get an error:
Or:
Steps to reproduce
I have created a test plugin to reproduce the issue:
https://github.com/remcotolsma/reproduce-composer-utility-issue-with-jetpack-autoloader
A clear and concise description of what you expected to happen.
It would be nice if the runtime Composer utilities still work with the Jetpack autoloader.
What actually happened
The runtime Composer utilities are not available or the utility classes are not aware of the packages loaded via the Jetpack autoloader.
Impact
Some (< 50%)
Available workarounds?
There is no user impact
Platform (Simple and/or Atomic)
No response
Logs or notes
No response
The text was updated successfully, but these errors were encountered: