Spin-off from #1468328: Move file entity info, managed file, and file usage functionality into File module
Problem
- When enabling the option "Check for updates automatically" in the installer, then Update module gets additionally installed as part of the last form submission handler of the installer. This call does not resolve the module dependencies for Update module.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal8.install-update.0.patch | 619 bytes | sun |
Comments
Comment #1
fledev.com commentedNot sure if I get the situation right, module Update - Requires: File, Field, Field SQL Storage and File Module Requires: Field, Field SQL Storage.
The actual state says:
where the second parameter (regarding: definition) - enabling dependencies set to false. This is so because the File module is also enabled and while enabling file, the second two are also enabled.
Another reason can be found at the function description "If TRUE, dependencies will automatically be added and enabled in the correct order. This incurs a significant performance cost, so use FALSE if you know $module_list is already complete and in the correct order."
Please confirm if this issue still occurs in the last D8 clone or please close the issue with the current status.
Comment #2
sunThis is still the case, and the patch in #0 is still the required fix.
We probably want to wait for these two issues to land first though:
#1798732: Convert install_task, install_time and install_current_batch to use the state system
#1331486: Move module_invoke_*() and friends to an Extensions class
Comment #13
quietone commentedThis is now using the ModuleInstaller,
$this->moduleInstaller->install(['update']);, the docs of which state that is gets all the dependencies. That makes this outdated.