Closed (fixed)
Project:
Views Data Export Excel
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2026 at 14:53 UTC
Updated:
9 Jun 2026 at 15:45 UTC
Jump to comment: Most recent
Comments
Comment #4
mably commentedThanks for the report — good catch.
Opened MR !1 mirroring the
composer.jsonconstraint (^2.1) as(>=2.1)on thexls_serializationentry inviews_data_export_excel.info.yml, so the requirement surfaces in Drupal's module install UI and dependency checker, not only via Composer.Comment #5
steven jones commentedNice!
Comment #6
mably commentedThanks for the review, let's merge this!
Comment #8
mably commentedComment #10
mably commentedFix included in the 1.0.1 release.
Comment #13
mably commentedMerging MR !2 (the simple
(>=2.1)revert) for now.The constraint as written breaks update.php for any site running
xls_serialization's dev branch. PHP'sversion_comparetreats thexin2.1.x-devas a string less than any digit, so2.1.x-devcompares as less than2.1andSystemRequirementsrejects the install. We ship dev versions on production instances, so this hit us at the "Verify requirements" step of update.php.Drupal's
Component\Version\Constraintparser also only capturesmajor.minorfrom a constraint string, so no info.yml expression can both accept2.1.x-devand reject 2.0.x — every attempt (>=2.0.999,>=2.0.0-zzz, etc.) collapses to>=2.0and lets 2.0.x stable through.The
composer.json^2.1constraint already enforces the minimum at install time and understands dev versions natively, so dropping the info.yml constraint to a presence check does not lose real enforcement.An alternative PHP-based enforcement (visible in Drupal's module install UI, dev-version aware) is in MR !3 —
InstallRequirementsInterface+#[Hook('runtime_requirements')]using Composer's ownSemver. Kept open as a follow-up.