johnpbloch / wordpress-core

Other
169 stars 40 forks source link

Could not parse version constraint refs/heads/5.3.x-dev: Invalid version string "refs/heads/5.3.x-dev" #26

Closed internalsystemerror closed 3 years ago

internalsystemerror commented 3 years ago

Hi, I use this package to include wordpress in my vendor folder, mainly for autocomplete when developing themes. I tried to run composer update today and found the following error:

composer update
    1/2:        http://repo.packagist.org/p/provider-latest$347a0865883f89580e0ac54b09a94e846178ab395e5cd7bef91a7a54aa76d2ec.json
    2/2:        http://repo.packagist.org/p/provider-2020-07$667dfc61948aa480aa46421f7c2e9724fc764f9f5b1e1f7db3f0d8ccd6a101b1.json
    Finished: success: 2, skipped: 0, failure: 0, total: 2
Loading composer repositories with package information
Updating dependencies (including require-dev)

  [RuntimeException]                                                                                                                                              
  Could not load package johnpbloch/wordpress-core in http://repo.packagist.org: [UnexpectedValueException] Could not parse version constraint refs/heads/5.3.x-  
  dev: Invalid version string "refs/heads/5.3.x-dev"                                                                                                              

  [UnexpectedValueException]                                                                              
  Could not parse version constraint refs/heads/5.3.x-dev: Invalid version string "refs/heads/5.3.x-dev"  

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-su
ggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore
-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

I'm not sure if this is related to the "refs/heads/5.3.x" branch name? I've been pulling my hair out (that's a lie, its already gone) trying to figure out why its happening exactly and what I can do about it. Is anyone else having this issue with this package?

internalsystemerror commented 3 years ago

This appears to have resolved itself with composer 2. No idea how/why.