On D8.9: right after updateing from 8.x-3.5 to 8.x-3.6

Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' can not be used to specify compatibility for a specific version before 8.7.7 in temporary://update-extraction-..../module_builder/module_builder.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 99 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php).

Drupal\Core\Extension\InfoParser->parse() (Line: 143)
Drupal\Core\Updater\Updater::getExtensionInfo() (Line: 61)
Drupal\Core\Updater\Module::canUpdateDirectory()
call_user_func() (Line: 88)
Drupal\Core\Updater\Updater::getUpdaterFromDirectory() (Line: 64)
Drupal\Core\Updater\Updater::factory() (Line: 139)
Drupal\update\Form\UpdateReady->submitForm()
call_user_func_array() (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 592)
Drupal\Core\Form\FormBuilder->processForm() (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 91)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 57)
Drupal\Core\StackMiddleware\Session->handle() (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 708)
Drupal\Core\DrupalKernel->handle() (Line: 19)
CommentFileSizeAuthor
#4 3149835-4.patch434 bytesandrewmacpherson
#2 3149835-2.patch627 bytesandrewmacpherson

Comments

maxilein created an issue. See original summary.

andrewmacpherson’s picture

Status: Active » Needs review
StatusFileSize
new627 bytes

Looking at the module *.info.yml file and composer.json files before and after commit b45c94a, it seems like the intention is to say that Drupal core isn't supported prior to version 8.4.

One way to address this is to use the Composer conflict mechanism to say it can't be installed alongside an early version of D8.

This patch:

  • Relaxes the core_version_requirement in the module's info file (to make the problem reported here go away).
  • Adds the conflict requirement to the Composer config (to keep enforcing the minimum Drupal core version).
andrewmacpherson’s picture

Title: Update to 8.x-3.6 fails » core_version_requirement can not be used to specify compatibility for a specific version before 8.7.7

Updating the title to reflect the actual problem - and make more sense in my cweagans/composer-patches config :-)

andrewmacpherson’s picture

StatusFileSize
new434 bytes

Ah, the patch in #2 applies against the dev branch of the module, but fails to apply against the 8.x-3.6 release because the Drupal.org packaging script adjusts the core: 8.x line.

This version of the patch is a sneaky workaround with fewer lines of context (git diff --unified=0). It should apply to the dev current dev branch or the packaged 8.x-3.6 release.

andrewmacpherson’s picture

It might of course be easier to just drop support for Drupal core prior to 8.7.7

joachim’s picture

Priority: Normal » Critical
Status: Needs review » Fixed

Sorry -- I read the docs about how to mark core compatibility and they were pretty confusing.

> It might of course be easier to just drop support for Drupal core prior to 8.7.7

Generally, MB/DCB tries to support older versions to people stuck on those can still generate code. So if there's a way to specify core 8.4 as the minimum, that would be best.

I've committed @andrewmacpherson's first patch and I'll make a new release today.

Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.