When trying to require the module on Drupal 9.1.x, composer fails with the following error:

-- Errors ---
./composer.json has been updated
> Drupal\Composer\Composer::ensureComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: remove drupal/core 9.1.x-dev
- Conclusion: don't install drupal/core 9.1.x-dev
- Conclusion: don't install drupal/core 9.1.x-dev
- drupal/smart_content_segments 1.0.0-alpha2 requires drupal/core ~8.0 -> satisfiable by drupal/core[8.0.x-dev, 8.1.x-dev, 8.2.x-dev, 8.3.x-dev, 8.4.x-dev, 8.5.x-dev, 8.7.x-dev, 8.8.x-dev, 8.9.x-dev].
- drupal/smart_content_segments 1.0.0-alpha2 requires drupal/core ~8.0 -> satisfiable by drupal/core[8.0.x-dev, 8.1.x-dev, 8.2.x-dev, 8.3.x-dev, 8.4.x-dev, 8.5.x-dev, 8.7.x-dev, 8.8.x-dev, 8.9.x-dev].
- Can only install one of: drupal/core[8.0.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.1.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.2.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.3.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.4.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.5.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.7.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.8.x-dev, 9.1.x-dev].
- Can only install one of: drupal/core[8.9.x-dev, 9.1.x-dev].

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_branescu created an issue. See original summary.

alex_branescu’s picture

Added a patch for info.yml file to allow D9 compatibility.

alex_branescu’s picture

Status: Active » Needs review

Please review the above patch.

alex_branescu’s picture

Assigned: alex_branescu » Unassigned
Issue tags: +Drupal 9 compatibility

fecka79 made their first commit to this issue’s fork.

fecka79’s picture

Please approve https://git.drupalcode.org/project/smart_content_segments/-/merge_reques... to make the module compatible with Drupal 9. Thank you!

fecka79’s picture

Can we please have this reviewed? Thank you!

gantal’s picture

Status: Needs review » Closed (outdated)

The 2.x version of this module is D9 compatible and now has an alpha release. The 1.x branch is not maintained anymore, so I don't know if we should update that. I'll mark this issue as outdated.