Closed (fixed)
Project:
Smart Trim
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2026 at 12:42 UTC
Updated:
24 Jun 2026 at 07:45 UTC
Jump to comment: Most recent
Composer build is failing for "next major".
I think this is the problem area:
- drupal/token_filter[2.1.0, ..., 2.1.x-dev] require drupal/core ^9.4 || ^10 -> satisfiable by drupal/core[9.4.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.6.x-dev].
- drupal/token_filter[2.2.0, ..., 2.x-dev] require drupal/core ^10 || ^11 -> satisfiable by drupal/core[10.0.0-alpha1, ..., 10.6.x-dev, 11.0.0-alpha1, ..., 11.x-dev].Failing because there isn't D12 compatible version of the Token Filter module.
See pipeline.
I have opened an issue on Token Filter to add D12 support: #3593924: Add support for Drupal 12
We can use composer-lenient and composer-patch plugins to apply this change.
Extract Token Filter change as a patch.
Add to .gitlab-ci.yml.
Also add Upgrade Status check to .gitlab-ci.yml.
Check tests pass.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
lostcarpark commentedGenerated patch from #3593924: Add support for Drupal 12 and added to .gitlab-ci, and set composer (next major) to apply it.
Composer is completing, and when we rebase for #3593272: Handle token hook implementations, everything should (hopefully) pass.
Comment #4
lostcarpark commentedMoving to needs review, though will need a rebase when #3593272: Handle token hook implementations merges.
Comment #6
ultimikeI made some headway on this, but the PhpUnit (next major) is failing on
tests/src/Functional/Update/SmartTrimUpdateMoreTest.phpI've rebased 2.x and added the
^12core requirement to the info.yml file as well as updated some#[group()]attribute stuff.-mike
Comment #7
lostcarpark commentedThe problem is that
SmartTrimUpdateMoreTestworks by restoring a database and running the update script, but it can't update from a D10 database. I can rebuild the backup on D11. Will have to see if I can make it select the existing database for previous major, and the new one for later versions.Comment #8
lostcarpark commentedI have created a new fixture against 11.3. The setDatabaseDumpFiles function selects the appropriate fixture to load for the Drupal version. This one should be okay until we need to support D13.
Fixture created by loading the previous one into 11.3 codebase, and running updates. I needed to run against 2.0 branch of Smart Trim, so I had to cheat and add "^11" to the core version requirement to get the update to run.
All tests pass with the new fixture.
Comment #10
ultimikeThank you, @lostcarpark, for your work on this issue!
I could have sworn that we had some documentation somewhere reminding us how to generate fixtures, but I can't find it. @lostcarpark - do you recall anything like this? @markie, do you?
I'm going to open a new issue (#3595211: Create tests/fixtures/README.md) to create a tests/fixtures/README.md to either link to the documentation I'm imagining or to add some instructions do so.
thanks,
-mike