drupal-composer / drupal-packagist

:package: Drupal Packagist server to automatically build package information from projects on drupal.org
http://packagist.drupal-composer.org
28 stars 4 forks source link

Version problems when install domain_variable #33

Closed webflo closed 9 years ago

webflo commented 9 years ago

From @drubot on June 2, 2015 14:54

When trying to install domain_variable I get the following:

  • drupal/domain_variable 7.1.1 requires drupal/variable_store 7.2.x-dev -> no matching package found.

drupal/variable correctly has

replaces drupal/variable_store self.version

and I added drupal/variable ^7.2

Copied from original issue: drupal-composer/drupal-composer.github.io#4

webflo commented 9 years ago

From @drubot on June 2, 2015 14:56

ok, I guess the source of the problem is the versioned dependency:

dependencies[] = variable_store (7.x-2.x)

When I add a dev version of variable it works also. But this should allow picking me a stable dependency also.

webflo commented 9 years ago

There is no easy answer to the problem. The version constraint is not listed on https://www.drupal.org/node/542202#dependencies

But i guess "7.x-2.x" is a short form of "2.x" which translates to '7.2.*'.

@drubot Do you have time to patch https://github.com/drupal-composer/drupal-parse-composer? The related testcode is in https://github.com/drupal-composer/drupal-parse-composer/blob/master/spec/Drupal/ParseComposer/InfoFileSpec.php

webflo commented 9 years ago

@drubot Please review https://github.com/drupal-composer/drupal-parse-composer/issues/37