Issue Bug Closed

#70175Cannot fetch version of extensions having a composer.json file

Xavier Perseguers 09/29/15, 10:23 updated 10/02/18, 11:28

Description

When an extension features a composer.json file, and according to best practices from Helmut (https://github.com/helhum/ext_scaffold), the version should not be present but inferred from a corresponding Git tag.

When having an extension, in TYPO3 6.2 at least, which has a composer.json and the standard ext_emconf.php (e.g., EXT:restdoc), Extension Manager is solely relying on composer.json for extracting the metainformation. This leads to incomplete information since the version is not found. It does not matter much until one tries to read the version number using the API:

$version = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion(“restdoc”);

// BANG!
// #1395614959: Version number in composer manifest of package "restdoc" is missing or invalid

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.