Skip to content

Не совместим с Drupal 9 #12

Closed
superromeo opened this issue Apr 20, 2021 · 7 comments
Closed

Не совместим с Drupal 9 #12

superromeo opened this issue Apr 20, 2021 · 7 comments

Comments

@superromeo
Copy link

Говорит:

Данная версия несовместима с Drupal 9.1.7-dev и должна быть заменена.

И действительно, в yookassa.info.yml видим:

core: 8.x

И как же быть?

@superromeo superromeo changed the title Не совместима с Drupal 9 Не совместим с Drupal 9 Apr 20, 2021
@ostulov
Copy link

ostulov commented Apr 26, 2021

Добрый день!

На текущий момент наш модуль еще не поддерживает Drupal 9.x. Мы проверим работу модуля на новой версии Drupal и подготовим отдельный модуль.

@ostulov
Copy link

ostulov commented Sep 28, 2021

С версии модуля v2.1.0 мы добавили совместимость с Drupal 9.x

@superromeo
Copy link
Author

Нет. Ошибка показывается всё так же.
Из-за: core: 8.x

@tonchik-tm
Copy link
Contributor

https://www.drupal.org/docs/creating-custom-modules/let-drupal-know-about-your-module-with-an-infoyml-file

Specifying the core_version_requirement when needed

The new core_version_requirement key in *.info.yml files for modules, themes, and profiles now supports semantic versioning as implemented by the Composer project. This allows modules, themes, and profiles to also specify that they are compatible with multiple major versions of Drupal core.

For example a module that is compatible with Drupal 8 and Drupal 9 can have a info.yml file like this

name: My Module
type: module
core: 8.x
core_version_requirement: ^8 || ^9

This specifies that the module is compatible with all versions of Drupal 8 and 9. The core: is required here because Drupal Core versions before 8.7.7 do not recognize the core_version_requirement: key.

Проверяли на версии Drupal 9.2.6
image

Попробуйте поставить модуль через composer.json:

...
"yoomoney/yookassa-sdk-php": "^2.0",
"drupal/commerce_yookassa": "^2.1",
...

@superromeo
Copy link
Author

В 9.2.8-dev ошибка есть. И пропадает после удаления этой строчки.

@superromeo
Copy link
Author

А если через композер с пакетом:
"drupal/commerce_yookassa": "^2.1",
ошибки нет. Странно.

@superromeo
Copy link
Author

А почему бы не добавить
"yoomoney/yookassa-sdk-php": "^2.0",
в require?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants