-
Notifications
You must be signed in to change notification settings - Fork 798
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
Runtime Composer utility \Composer\InstalledVersions::getInstallPath( 'woocommerce/action-scheduler' )
does not work with jetpack-autoloader
#33831
Comments
\Composer\InstalledVersions::getInstallPath( 'woocommerce/action-scheduler' );
does not work with jetpack-autoloader
\Composer\InstalledVersions::getInstallPath( 'woocommerce/action-scheduler' )
does not work with jetpack-autoloader
At first glance, one way to fix this could involve merging data similar to what Composer stores to As a workaround for now, you might try using |
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation. |
I don't think this will work in our use case. We need to include the |
@obenland this one doesn't look like something that a groundskeeper would pick up. Should this just be assigned to a team? I'll leave it alone, but figured you might have an opinion. |
@jeherve Is the One Board the best place for this issue? Is there a Jetpack specific board where it would fit better? |
The issue is already assigned to the right team in the One Board, so it's on their radar: That said, until now we didn't automatically add Autoloader issues to their Project boards ; we can do that too, so I just enabled it in #39958. All this to say, I think the team is aware of that issue already. 👍 |
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: