Will not install on Drupal 11

Created on 1 March 2025, about 2 months ago

Problem/Motivation

Tried to install on a new Drupal 11.1.3 site via composer

composer require 'drupal/indieweb:^1.24'

Got message:

drupal/indieweb 1.24.0 requires drupal/core ^10 -> found drupal/core[10.0.0, ..., 10.4.3] but the package is fixed to 11.1.3

Steps to reproduce

Attempt to install in Drupal 11

Proposed resolution

update your .info.yml file to include

core_version_requirement: ^10 || ^11

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.24

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lieb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lieb
  • πŸ‡ΊπŸ‡ΈUnited States lieb

    I couldn't install dev either

    composer require 'drupal/indieweb:1.x-dev@dev'
    
     Problem 1
        - ext-sodium is present at version 8.3.16 and cannot be modified by Composer
        - Root composer.json requires drupal/indieweb 1.x-dev@dev -> satisfiable by drupal/indieweb[1.x-dev (alias of dev-1.x)].
        - drupal/indieweb 1.x-dev is an alias of drupal/indieweb dev-1.x and thus requires it to be installed too.
        - drupal/indieweb[dev-1.x, 1.x-dev] cannot be installed as that would require removing ext-sodium[8.3.16]. drupal/indieweb replaces ext-sodium and thus cannot coexist with it.

    As near as I can tell sodium is not a PHP module, but is baked in to PHP 8.3

  • πŸ‡§πŸ‡ͺBelgium swentel

    More or less duplicate of πŸ“Œ Allow lcobucci/jwt 4.3.0 for PHP 8.3 support Active - I thought the sodium polyfill could work, but I have to double check again.
    I /think/ it should work locally, but the testbot has a problem installing it, so it's kind of a chicken/egg problem.

  • πŸ‡§πŸ‡ͺBelgium swentel

    Note: dev release indeed has support for D11 (added in πŸ“Œ Automated Drupal 11 compatibility fixes for indieweb Needs review ), but not release yet, need to fix the sodium stuff :)

  • πŸ‡§πŸ‡ͺBelgium swentel

    Laste update: it's actually another commit that is still in dev that updated composer.json, that one is not in a release yet. Sorry for the noise!

  • πŸ‡§πŸ‡ͺBelgium swentel

    Actually, I've released 8.x-1.25 :)

    Let's meet in πŸ“Œ Allow lcobucci/jwt 4.3.0 for PHP 8.3 support Active for the sodium extension.

  • πŸ‡ΊπŸ‡ΈUnited States lieb

    Sorry,
    my initial comment said you had to change your .info.yml file for D11, but that's not correct as Composer doesn't look at that. Its your composer.json that will need

    "require": {
            "drupal/core": "^10.3 || ^11"
     },

    For D11. But I noticed most contrib modules do not declare a dependency on core in their composer.json files, so maybe you can just leave it out.

    I will try installing the Dev release soon. Thanks.

  • πŸ‡ΊπŸ‡ΈUnited States lieb

    Just tried 1.2.5 . Still getting this

    Problem 1
        - ext-sodium is present at version 8.3.16 and cannot be modified by Composer
        - Root composer.json requires drupal/indieweb ^1.25 -> satisfiable by drupal/indieweb[1.25.0].
        - drupal/indieweb[1.25.0] cannot be installed as that would require removing ext-sodium[8.3.16]. drupal/indieweb replaces ext-sodium and thus cann
    ot coexist with it.

    My php info shows

    sodium support	enabled
    libsodium headers version	1.0.18
    libsodium library version	1.0.18
    

    Let me know if there is something else you'd like me to check.

  • πŸ‡§πŸ‡ͺBelgium swentel

    New release will install. It means the testbot won't be able to run anymore, but that's ok for now. See πŸ“Œ Allow lcobucci/jwt 4.3.0 for PHP 8.3 support Active

  • πŸ‡ΊπŸ‡ΈUnited States lieb

    Just installed 1.2.6 - Success!! Thank you for the quick turn around on this.

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

Production build 0.71.5 2024