Module 使用composer和drush管理drupal 8模块
我是作曲家drupal管理的新手。因此,我需要在我的D8网站上进行更新(从D6迁移)。 我得到了德鲁什和作曲家之间不匹配的信息,比如:Module 使用composer和drush管理drupal 8模块,module,composer-php,updates,drupal-8,drush,Module,Composer Php,Updates,Drupal 8,Drush,我是作曲家drupal管理的新手。因此,我需要在我的D8网站上进行更新(从D6迁移)。 我得到了德鲁什和作曲家之间不匹配的信息,比如: $ composer outdated drupal/* drupal/feeds 3.0.0-alpha5 3.0.0-alpha6 Aggregates RSS/Atom/RDF feeds, imports CSV files and more. drupal/migrate_tools 4.3.0
$ composer outdated drupal/*
drupal/feeds 3.0.0-alpha5 3.0.0-alpha6 Aggregates RSS/Atom/RDF feeds, imports CSV files and more.
drupal/migrate_tools 4.3.0 4.4.0 Tools to assist in developing and running migrations.
$ drush @sited8 pml --filter=feed
--------- ---------------------------------------- ---------- ----------------
Package Name Status Version
--------- ---------------------------------------- ---------- ----------------
Feeds Feeds (feeds) Disabled 8.x-3.0-alpha4
$ drush @sited8 pml --filter=migr
-------------------------- --------------------------------------------- --
Package Name Status Version
-------------------------- -----------------------------------------------
Migration Migrate Tools (migrate_tools) Disabled 8.x-4.1
那么,使用禁用模块的好方法是什么?我需要用composer删除它们吗?作曲家不存在与“禁用”类似的状态吗
谢谢
编辑:良好的实践已经修复,但是德鲁什和作曲家之间的信息不匹配怎么办
EDIT2:另一个信息不匹配的案例
composer outdated drupal/*
drupal/admin_toolbar 1.27.0 2.0.0 Provides a drop-down menu interface to the core Drupal Toolbar.
drupal/better_exposed_filters 3.0.0-alpha6 4.0.0-alpha1 Provides advanced options (such as links, checkboxes, or jQueryUI widgets) for exposed Views elements.
drupal/webform 5.4.0 5.5.0 Enables the creation of webforms and questionnaires.
@ssh4:~/www/celony/sited8$ composer update drupal/admin_toolbar drupal/better_exposed_filters
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
更多信息:如果更新被提到为红色,我可以运行composer更新,如果是黄色,我会使用composer require。也许是正常的方式?
谢谢您的链接。这是正确的方法:是的,这就是为什么我编辑了我的答案。