simple-local-avatars icon indicating copy to clipboard operation
simple-local-avatars copied to clipboard

Composer.json requires an unpublished package

Open mikelittle opened this issue 3 months ago • 6 comments

Describe the bug

When I try to require 10up/simple-local-avatars at he current version in my project, composer fails because SLA requires 10up/wp-compat-validation-tool which is not published on packagist.org.

Is that package really required? If so, can it be published on packagist.org, please.

Steps to Reproduce

  1. composer require 10up/simple-local-avatars
  2. composer update -W
  3. See error "10up/simple-local-avatars 2.8.5 requires 10up/wp-compat-validation-tool dev-trunk -> could not be found in any version, there may be a typo in the package name."

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

mikelittle avatar Oct 07 '25 15:10 mikelittle

@mikelittle 10up/wp-compat-validation-tool helps with PHP compat checking in the plugin, so as far as I know yes it's needed. Would it suffice to have that dependency in https://wpackagist.org/ or do you ideally have that on https://packagist.org/ itself?

jeffpaul avatar Oct 09 '25 04:10 jeffpaul

Yes, I guess could it could go on https://wpackagist.org, instead. Though, I thought wp.org stopped allowing library type plugins a while ago.

mikelittle avatar Oct 13 '25 15:10 mikelittle

@jeffpaul any update on this? 😄

VlasicVojislav avatar Nov 12 '25 12:11 VlasicVojislav

@mikelittle @VlasicVojislav this should be done now that https://packagist.org/packages/10up/wp-compat-validation-tool is available, but please check and validate that things work as expected on your end.

jeffpaul avatar Nov 22 '25 22:11 jeffpaul

Hi @jeffpaul This still does not work. I'll raise an issue with more details, explaining what is going wrong.

mikelittle avatar Dec 08 '25 14:12 mikelittle

@jeffpaul I added a proposal over at https://github.com/10up/wp-compat-validation-tool/issues/14 to solve this problem in a backwards and forwards compatible way.

I would love to hear your feedback.

mikelittle avatar Dec 09 '25 16:12 mikelittle