Adding drupal/image_widget_crop in our composer.json while using the Unofficial Drupal Packagist (https://packagist.drupal-composer.org/) repository cannot download version 1.4; it only downloads 1.3.

It seems to be because of the crop dependency added in 1.4 ("drupal/crop": "1.0.0"). That versioning is for the official Drupal repository and does not work for the Unofficial one.

Anyone knows how I can solve this? I'd like to use 1.4 and not 1.3, without having to modify all my dependency versioning if possible.

Comments

yusufhm created an issue. See original summary.

yusufhm’s picture

I was able to fix it by following this StackOverflow answer: How to override others dependencies in composer.json.

We can specify an alias version of a composer package, which I did for "drupal/crop" like so: "drupal/crop": "8.1.0 as 1.0.0".

yusufhm’s picture

Status: Active » Fixed
recrit’s picture

Status: Fixed » Active

re-opened until the maintainer fixes the composer.json in this module.

yusufhm’s picture

@recrit I'm not sure if there's anything to fix here; I believe the maintainer used the correct Composer repository in this case, because the unofficial one will soon be deprecated anyway.

So we should either use the official repo, or specify the crop version alias in our project composer.json.

However, if there exists a way they could make the drupal/crop dependency work irrespective of the repository, then that'd be awesome.

woprrr’s picture

Status: Active » Closed (won't fix)