Is it possible to use .md files in package-builder setPackageAttributes?
This doesn’t work:
'license' => file_get_contents($sources['root'] . 'LICENSE.md'),
'readme' => file_get_contents($sources['root'] . 'README.md'),
'changelog' => file_get_contents($sources['root'] . 'CHANGELOG.md'),
'copy_exclude_patterns' => ['/^__/'],
'setup-options' => [
'source' => $sources['build'] . 'setup.options.php',
The installer shows blank fields for readme, license and changelog.
If you are testing this on MODX 3.0.3: There is a bug in this MODX version, that prevents these files from being shown:
06:13PM - 21 Jan 23 UTC
### What does it do?
Makes conditionals more precise and error-proof in `before
… tabchange` listener.
### Why is it needed?
A new listener method added in #16089 was interfering with package installation and upgrades. Type errors were preventing these processes from completing.
### How to test
Install one new Extra and update one Extra to verify no errors occur and installations are successful.
### Related issue(s)/PR(s)
Yep - testing on MODX 3.0.3 (MODX Cloud).
Thanks for your hint!
January 30, 2023, 9:26pm
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.