Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.0-beta5
Component:
Other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2017 at 15:54 UTC
Updated:
24 Feb 2017 at 15:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
agoradesign commentedHi,
Drupal 8.2.5 itself does not require drupal/entity, neither does the drupal-composer/drupal-project Composer template afaik. So you've must have required drupal/entity yourself explicitely. Is that correct?
Further, as a rule of thumb, you should only add drupal/entity to your project's composer.json, if you really depend on that yourself. If you just added it because Commerce or any other module depends on it, do not add it explictly, Composer will find out and download all required dependencies itself.
If you still need the drupal/entity entry in your composer.json file, and you absolutely don't want to use the dev version, you can still trick Composer by adding this line to your composer.json instead:
"drupal/entity": "1.0.0-alpha4 as 1.x-dev"Comment #3
hansfn commentedOk, I'm an idiot :-)
Of course Drupal core doesn't require the Entity module. I'll have to investigate where the requirement comes from.
Anyway, my question stands: Does Commerce 2.x at beta5 really require a dev version of Entity?
Comment #4
bojanz commentedWe simply haven't updated the requirement yet. Entity API is in alpha so it's pretty much the same thing stability-wise.
Comment #5
hansfn commentedI don't disagree that stability wise an alpha and dev version is similar.
Anyway, I have investigated and I have found the problem. I did not require Entity directly - there is no
drupal/entityline in my composer.json. It's coming from Media Entity which requires "entity:entity (>=8.x-1.0-alpha3)" in the info file (which generates the dependencies for Composer). I think this requirement causes the problem, and I think this problem is worth fixing.Comment #6
bojanz commentedOkay, let's patch our composer.json and fix it.
Comment #7
hansfn commentedShould I create a patch or will you just fix it?
Comment #8
ndf commentedMini-patch attached.
drupal/entity:~1.0 resolves to 1.0.0-alpha4
Comment #9
pianomansam commented@ndf you patch applies to 8.x-2.x-dev but not 8.x-2.0-beta5 because drupal/address went from ~1.0 to 1.x-dev
Comment #10
bojanz commentedTagged a new Address RC4, so we can fix that requirement at the same time.
Comment #12
bojanz commentedDone.