-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dependency oddities from switch to drupal/islandora #1028
Comments
Are you getting error messages once you install drupal/action, that say that it's incompatible? I was just playing with a test site on 10.2.7 and I required drupal/action. It seems to be working fine for me. I think All this to say, I think the solution is for us to require drupal/action in islandora's composer.json. |
So yeah, reproducing: For attempting to install composer create-project drupal/recommended-project:10.1.x 10.1.x
cd 10.1.x
# XXX: Flipping stability, to avoid otherwise messing with `drupal/flysystem` being a beta release.
composer config -- minimum-stability dev
composer require -W drupal/islandora indeed fails due to
10.2, does install
|
The project page for the contrib actions module also mentions |
I was going to suggest we do the same thing as we did when HAL went to contrib (see jsonld), but it seems we drew a hard line between drupal 8 and 9 (it was at that time) where the version of jsonld that worked with D9 (only), had the contrib module. It's a little too late to fix 2.12.2 which is installable on Drupal 10.2 but has code duplication 😣. We could create 2.12.3 which doesn't require contrib |
@rosiel : I think the issue is more that: Our |
Is particularly strange. Throwing together a minimal "project", which can pull the module: project's `composer.json`{
"name": "adam/asdf",
"require": {
"drupal/islandora": "^2.12"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8",
"canonical": false
}
],
"minimum-stability": "dev",
"prefer-stable": true
} Installing it, and seeing in "name": "drupal/islandora",
"version": "2.12.2",
[...]
"require": {
"drupal/action": "*",
[...] |
I wonder what it did before there was a contrib drupal/action. Does it require Anyway, failing to see a good way that we can deal with this, what is the impact of duplicated code in /core/modules and /modules/contrib? I seem to have been running a dev site for a while, and am not inundated with PHP errors or anything. |
I've asked in drupal slack's |
Suspecting that items pulled via contrib would take precedence over the version from core. Making reference to Drupal (10.2's) extension discovery, it seems like it might fall under the same ordering as project-wide vs site-specific "modules" directories. Which is to say: Having the two versions of code (via both core and contrib) in the project might not be an actual issue?
|
Summary of issue
This is more of an issue with Drupal's packaging tripping over itself, but maybe the dependency specifications in the
islandora.info.yml
could be modified as a workaround.What steps does it take to reproduce the issue?
When does this issue occur?
composer require drupal/islandora
in a site using Drupal 10.1.x or 10.2.xWhat happens?
drupal/*
modules turns dependencies listed in*.info.yml
files into composer requirements, and it's registeringdrupal:action
as the new (and incompatible) contrib module sincedrupal/action
is moving from a core module to a contrib module in Drupal 10.3+ (see https://www.drupal.org/project/action)*.info.yml
requirements intocomposer.json
requirements: https://git.drupalcode.org/project/project_composer/-/blob/7.x-1.x/project_composer.module?ref_type=heads#L873drupal/action (0.2.1)
which duplicates a core module as a contrib module even though the contrib module is not compatible with anything prior to Drupal 10.3Which version of Islandora are you using?
This isn't specific to a certain version, but as an example, the latest version (drupal/islandora:2.12.2) can be used.
Any related open or closed issues to this bug report?
Related to the move towards requiring the use of
drupal/islandora
instead ofislandora/islandora
Islandora/documentation#2270
#1020
The text was updated successfully, but these errors were encountered: