Commit 4a86bdd
committed
hotfix(build): trim changelog in transport metadata to current release only (#296)
Full changelog.txt (~33 KB, history from 1.0.0-alpha) was bundled into
`modx_transport_packages.metadata` via `setPackageAttributes`. On
MODX 3.x installs where that column is TEXT (65 535 bytes), serialized
attributes (changelog + license + readme + requires) overflowed the
column and the package install failed with:
SQLSTATE 22001 / 1406 Data too long for column 'metadata' at row 1
Symptom reported by Alexey Naumov on modx.pro for 1.11.0-beta1 (#296).
Full history previously fit because the file had been smaller — the
1.11.0 release added a large block.
Fix: `readLatestChangelogEntry()` returns only the first
`## [version]` block (current release) from Keep a Changelog file.
For 1.11.0-beta1 the latest block is ~7.4 KB instead of 33 KB; total
metadata is now well under the TEXT limit.
The full changelog stays untouched in core/components/minishop3/docs/changelog.txt
inside the package — users see complete history in the file, not in
the package metadata viewer.
Re-tagging the existing v1.11.0-beta1 (same approach as #293).1 parent a0480e2 commit 4a86bdd
1 file changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
578 | 582 | | |
579 | 583 | | |
580 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
581 | 615 | | |
582 | 616 | | |
583 | 617 | | |
| |||
0 commit comments