Follow-up to #2864031: Update twig/twig from v1.25.0 to v1.32.0

Follow-up to #2862254-17: Update non-Symfony dependencies before 8.3.0

Problem/Motivation

8.4.x has had its Twig version updated - see #2864031: Update twig/twig from v1.25.0 to v1.32.0

But there are regressions - https://github.com/twigphp/Twig/issues/2447 - our current constraint means that composer controlled projects get the latest version and experience bugs.

Proposed resolution

Change Twig constraint to >=1.23.1 <1.27

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None.

CommentFileSizeAuthor
#2 2869528-2.patch454 bytesalexpott
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpott created an issue. See original summary.

alexpott’s picture

We have know regressions on 1.28.0 and I think @lauriii discovered something in 1.27.0 too. The current locked version is 1.25.0 on 8.3.x

greg.1.anderson’s picture

Alternative solution would be to get Composer-managed projects to use webflo/drupal-core-strict. Of course, not all (few?) projects will be using this at the moment, so directly modifying composer.json as is done here is a good idea.

c.f.: https://github.com/drupal-composer/drupal-project/pull/264

greg.1.anderson’s picture

Composer seems to have some problems using drupal-core-strict in some instances. See notes in the issues linked from the PR above for details.

joelpittet’s picture

Could we look at fixing BC regressions upstream? One was committed recently I noticed.

Hopping to move forward but may this patch is meant to be a stopgap?

dawehner’s picture

Could we look at fixing BC regressions upstream?

I totally agree we should work with the twigphp community to fix these versions upstream. In the meantime though it is useful to not introduce problems for existing nites.

In general I believe that explicit specifying which versino of a package Drupal relies it in order to function correctly is a good idea.

The only small fear I have: When we limit the core version here, we will have a problem potentially when there is a security issue coming out.

alexpott’s picture

@dawehner well right now we have a huge problem if a twig security bug occurs. We'd probably have to fork and merge the fix to our supported version :(

dawehner’s picture

@dawehner well right now we have a huge problem if a twig security bug occurs. We'd probably have to fork and merge the fix to our supported version :(

Well either that or we include composer patches. Would that be a feasible alternative?

joelpittet’s picture

Patching seems like a good approach to big security bugs, but for regressions in the 1.x Twig specific problem, fixing upstream regressions seems better because leave upstream open for improvements and bug fixes. If upstream isn't receptive to our changes then maybe this is the correct approach, but this would be similar to the forking idea just a stale fork(with bits of food left from dinner on it).

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

lauriii’s picture

Status: Needs review » Closed (outdated)

The upstream bugs have been fixed.