The installation and updates of profiles should allow the versions required to be specified in the info.yml similar to how modules can specify version requirements for dependencies. I applied the patch in comment 40 of #2855026: Installation profiles do not support project:module format for dependencies and then I added the dependency to the standard profile:
- ctools:ctools(>=8.x-3.0)
The 8.x-3.0 version of Chaos tools is added to modules/contrib/. The installation of the standard profile of Drupal completes without any problem and with ctools installed. I changed the standard.info.yml to
- ctools:ctools(>8.x-3.0)
The ctools module is 8.x-3.0 so it does not meet this requirement. The installation completes successfully despite the requirement not being met.
The installation profiles should use the same code as the module installation to check for the correct versions and not allow installation if the requirements are not met.
Comments
Comment #9
catchPretty sure this was resolved by https://www.drupal.org/node/2952947