We are getting the below composer error on an existing 8.9.x-dev installation:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for drupal/rdfui 1.x-dev -> satisfiable by drupal/rdfui[1.x-dev].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.0].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.0-rc.1].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.0-rc.2].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.0-rc.3].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.0-rc.4].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.0-rc.5].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.1].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.x-dev].
- Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.1].
- Conclusion: don't install easyrdf/easyrdf 1.0.0-rc.1|remove drupal/core 8.9.x-dev
- Conclusion: install easyrdf/easyrdf 1.0.0-rc.1
- drupal/core 8.9.x-dev requires easyrdf/easyrdf ^0.9 -> satisfiable by easyrdf/easyrdf[0.9.1, 0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.x-dev].
- Installation request for drupal/core 8.9.x-dev -> satisfiable by drupal/core[8.9.x-dev].

Comments

platinum1 created an issue. See original summary.

sanduhrs’s picture

Title: Composer update error with core 8.9.x-dev » Add composer alias for D8 compatibility

  • sanduhrs committed 7b8f368 on 8.x-1.x
    Issue #3158340 by sanduhrs: Add composer alias for D8 compatibility
    

  • sanduhrs committed fa70e7d on 8.x-1.x
    Issue #3158340 by sanduhrs: Add composer alias for D8 compatibility
    

  • sanduhrs committed d855d5d on 8.x-1.x
    Issue #3158340 by sanduhrs: Add composer alias for D8 compatibility
    
ckng’s picture

Getting

Your requirements could not be resolved to an installable set of packages.

Problem 1
    - Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.1].
    - Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.1].
    - Can only install one of: easyrdf/easyrdf[1.0.0-rc.1, 0.9.1].
    - drupal/rdfui 1.x-dev requires easyrdf/easyrdf 1.0.0-rc.1 as 0.9.1 -> satisfiable by easyrdf/easyrdf[1.0.0-rc.1].
    - Installation request for drupal/rdfui 1.x-dev -> satisfiable by drupal/rdfui[1.x-dev].
    - Installation request for easyrdf/easyrdf (locked at 0.9.1) -> satisfiable by easyrdf/easyrdf[0.9.1].
ckng’s picture

Fixed it by adding to composer.json

"easyrdf/easyrdf": "1.0.0-rc.1 as 0.9.1",
platinum1’s picture

Thank you @ckng for an unconventional solution

  • sanduhrs committed 6a5b7bb on 8.x-1.x
    Issue #3158340 by sanduhrs: Add composer alias for D8 compatibility
    
jonathan_hunt’s picture

I think this alias can be removed now that EasyRDF has released v1.0.0 https://github.com/easyrdf/easyrdf/releases/tag/1.0.0

tomvanetten’s picture

This alias now breaks my project, see proposed patch https://www.drupal.org/project/rdfui/issues/3172502

When updating the composer lock file, or requiring a new module, thes module throws an error :

[RuntimeException]                                                                                                                                                                                               
  Could not load package drupal/rdfui in https://packages.drupal.org/8: [UnexpectedValueException] Could not parse version constraint ^1.0 as 0.9.1: Invalid version string "^1.0" in "^1.0 as 0.9.1", the alias   
  source must be an exact version, if it is a branch name you should prefix it with dev-
sanduhrs’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.