Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2015 at 12:00 UTC
Updated:
29 Aug 2015 at 07:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
timmillwoodWe should be good with "~1.2"
Comment #2
amateescu commentedIs there any reason not to require the latest stable version?
Comment #3
timmillwoodcomposer updatewill take the latest stable version, and as we ship with composer.lockcomposer installwill currently take version 1.5 described in there (which is the latest stable version). However this version is not needed for Drupal 8, so there's no reason to require it."~1.2"will allow 1.2 or higher, but less than 2.0.0.Comment #4
dawehnerWe should certainly not pin down our exact used version, but well, if we are already on 1.5, by not go with that?
Comment #5
timmillwood1.2 works, so I feel no reason to enforce a higher version, however we are not pinning down the version as you said, so the highest available version should be installed.
Comment #6
davidwbarratt commented#4,
Also, the version is pinned down in
composer.lockso for any non-Composer user, they wont see a difference. Allowing a bigger range of dependencies allows composer users to install libraries that need different versions.Let's say someone needs to use a dependency that needs
<1.5by pinning it to>=1.5we are preventing someone from installing the library because the dependencies cannot be resolved. :(Comment #7
davidwbarratt commentedPatch looks good to me.
Comment #8
davidwbarratt commentedComment #9
timmillwoodComment #10
mile23Unfortunately, since #1475510: Remove external dependencies from the core repo and let Composer manage the dependencies instead hasn't happened, the patch will need to include the changes to
core/vendor/.Comment #11
timmillwood@Mile23 - Why?
Comment #12
mile23Er, yah, if the files are unchanged then no biggie, my mistake. But if they are, then we need them.
Comment #13
davidwbarratt commentedThe files will be unchanged because Composer by default installs the latest version.
Comment #14
timmillwoodThink I have passed the github rate limit throttling so here's the tests for those interested.
https://travis-ci.org/timmillwood/drupal/builds/70065984
Comment #15
alexpottThanks @timmillwood nice patch - I like the idea of being compatible with a wider variety of libraries. Committed 31da514 and pushed to 8.0.x. Thanks!
Comment #18
davidwbarratt commentedtimmillwood,
Is there an issue to update the testbot to run
composer update --prefer-lowest --prefer-stableon one of the runs?Comment #19
timmillwoodNo, only for composer install.
Should be quite simple to add.