Issue #3116581: Use core_version_requirement, not a version dependency on drupal:views introduces the D9-tag, but I still get an error in D9:
The 'core_version_requirement' key must be present in modules/views_bulk_operations/modules/actions_permissions/actions_permissions.info.yml

Comments

johnv created an issue. See original summary.

karishmaamin’s picture

Status: Active » Needs review
StatusFileSize
new570 bytes

Added core_version_requirement in actions_permissions.info.yml, please review

johnv’s picture

Status: Needs review » Needs work

I guess this is needed for all submodules, so also: views_bulk_operations_example.
Afterwards, we need to test for deprecated code (in a separate (already existing?) issue.

wrd’s picture

StatusFileSize
new1.3 KB

Same, but also for the example module.

johnv’s picture

The "# Information added by" lines should not be in the patch.

wrd’s picture

StatusFileSize
new1.15 KB

Whoops! This should clean that up.

johnv’s picture

Status: Needs work » Reviewed & tested by the community

better.

johnv’s picture

Status: Reviewed & tested by the community » Needs work

Not OK:
Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (^8.8 || ^9) requires the 'core' key not be set in modules/views_bulk_operations/modules/actions_permissions/actions_permissions.info.yml
Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (^8.8 || ^9) requires the 'core' key not be set in modules/views_bulk_operations/modules/views_bulk_operations_example/views_bulk_operations_example.info.yml

IMO, a crappy specification.
So, this is OK:

core: 8.x
core_version_requirement: ^8 || ^9

and this is not:

core: 8.x
core_version_requirement: ^8.8 || ^9
wrd’s picture

My guess is that ^8.8 was specified for good reason? So we probably want to remove the "core" key, rather than changing "^8.8" to "^8"?

johnv’s picture

I think so, too.

graber’s picture

Confirming #9.

wrd’s picture

StatusFileSize
new1.17 KB

OK, this one removes the old "core" keys.

heddn’s picture

Category: Bug report » Task
Status: Needs work » Needs review

Adding some test runs to see how things fare. We might need to commit this patch, then re-test again.

heddn’s picture

Status: Needs review » Needs work

Also, need to add core version support to composer.json for ^9.0

piggito’s picture

Status: Needs work » Needs review
StatusFileSize
new1.47 KB
new300 bytes

Updated composer.json to support drupal 9

piggito’s picture

Drupal 9 test fails cause we need changes committed into dev for composer to resolve dependencies so I guess it can be ignored.

  • Graber committed beb2027 on 8.x-3.x authored by piggito
    Issue #3131516 by wrd, piggito, karishmaamin: Use...
graber’s picture

Status: Needs review » Fixed

Reviewed and pushed, thanks!

Status: Fixed » Closed (fixed)

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