Rules and Typed Data API are closely coupled, so for a while now Rules has been depending on the -dev version of Typed Data API so that development of both Rules and Typed Data API could be made in unison.

I would like to get away from that and remove the -dev dependency now that Typed Data API has stabilized.

CommentFileSizeAuthor
drop-typed-data-dev-dependency.patch357 bytestr

Comments

TR created an issue. See original summary.

  • TR committed b92e915 on 8.x-3.x
    Issue #3248974 by TR: Drop dependency on -dev version of typed_data
    
tr’s picture

Status: Needs review » Fixed

Committed.

andriyun’s picture

Hi TR

It could be that this issue is not directly related to the issue I got. Then I'd appreciate the advice on how to report this info better.
Release of Rules 8.3.x alpha 6 has reference dynamic reference to dev version of Typed data module.

After commit https://git.drupalcode.org/project/typed_data/-/commit/dcefe6280edd83d13... it is not possible anymore to install release of Rules 8.3.x alpha 6 neither Drupal 8 nor Drupal 9

docker@cli:/var/www$ composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction
...
docker@cli:/var/www$ cd some-dir
docker@cli:/var/www/some-dir$ composer require 'drupal/rules:3.0.0-alpha6'
./composer.json has been updated
Running composer update drupal/rules
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/typed_data dev-1.x requires drupal/core ^9 -> found drupal/core[9.0.0-alpha1, ..., 9.4.x-dev] but it conflicts with your root composer.json require (^8.8.0).
    - drupal/rules 3.0.0-alpha6 requires drupal/typed_data 1.x-dev -> satisfiable by drupal/typed_data[1.x-dev (alias of dev-1.x)].
    - drupal/typed_data 1.x-dev is an alias of drupal/typed_data dev-1.x and thus requires it to be installed too.
    - Root composer.json requires drupal/rules 3.0.0-alpha6 -> satisfiable by drupal/rules[3.0.0-alpha6].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Though the development version of Rules could be installed on Drupal 8 without issues.

tr’s picture

Use 8.x-3.x-dev

alpha6 was never D9 compatible - you have to use 8.x-3.x-dev for D9.

There will soon be a new alpha release from the current -dev branch.

andriyun’s picture

It is not about Drupal 9

We have used Rules 8.3.x alpha 6 on Drupal 8 based project. About a week ago we lost possibility to use it because of dynamic reference to type_data module. See comment above.

So currently Rules 8.3.x alpha 6 is useless for both Drupal 8 and 9

We don’t use dynamic references in our projects like you suggesting.

Would be great to get new alpha release soon.

gitesh.koli’s picture

Hi TR,

We are in the process of having customers migrate from Drupal 8 to Drupal 9.
Some customers may take longer than expected.

If we can continue to support Drupal ^8.9 || ^9 for 3-4 months, that would be give them time to plan the upgrade.

Status: Fixed » Closed (fixed)

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