Здравствуйте, не могу обновить модульContext через Composer. Пишет
]$ composer update drupal/context --with-dependencies
Loading composer repositories with package information
Updating dependencies
Package "drupal/context" listed for update is not locked.
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
41 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Комментарии
1) Покажите как записан модуль в composer.json, а лучше весь composer.json на pastebin
2) Какая версия установлена на сайте?
"name": "drupal/recommended-project",
"description": "Project template for Drupal 9 projects with a relocated document root",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/drupal",
"support": {
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
"chat": "https://www.drupal.org/node/314178"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^1.9",
"drupal/admin_toolbar": "^3.0",
"drupal/advagg": "^4.1",
"drupal/back_to_top": "^1.1",
"drupal/background_image_formatter": "^1.7",
"drupal/bg_image_formatter": "^1.14",
"drupal/ckeditor_colorbox_inline": "^1.1",
"drupal/colorbox": "^1.7",
"drupal/colorbox_inline": "^1.2",
"drupal/core-composer-scaffold": "^9.1",
"drupal/core-project-message": "^9.1",
"drupal/core-recommended": "^9.1",
"drupal/ctools": "^3.5",
"drupal/editor_advanced_link": "^1.8",
"drupal/field_formatter_class": "^1.5",
"drupal/flexslider": "^2.0",
"drupal/flipclock": "^1.1",
"drupal/jquery_countdown_timer": "^1.3",
"drupal/jstimer": "^1.3",
"drupal/menu_breadcrumb": "^1.14",
"drupal/menu_force": "^1.2",
"drupal/metatag": "^1.15",
"drupal/pathauto": "^1.8",
"drupal/php": "^1.1",
"drupal/recaptcha": "^3.0",
"drupal/recaptcha_v3": "^1.4",
"drupal/redirect": "^1.6",
"drupal/smtp": "^1.0",
"drupal/token": "^1.9",
"drupal/twig_tweak": "^3.1",
"drupal/views_infinite_scroll": "^1.8",
"drupal/webform": "^6.0",
"drupal/xmlsitemap": "^1.0"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"sort-packages": true
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
},
"file-mapping": {
"[web-root]/.htaccess": false,
"[web-root]/robots.txt": false
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
]
},
"drupal-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install the site: https://www.drupal.org/docs/8/install",
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
" * Get support: https://www.drupal.org/support",
" * Get involved with the Drupal community:",
" https://www.drupal.org/getting-involved",
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
}
}
}
2) Версия: 8.x-4.0-beta6
Очевидно же, что модуль context не был установлен композером и отсутствует в файле composer.json. Как композер может обновить то, чего нет?
Опередил)
Видимо beta не хотела устанавливаться с помощью Composer. Поэтому пришлось установить с помощью админки. Сейчас установил с помощью Composer. Спасибо за помощь.