Bug #70175
closedCannot fetch version of extensions having a composer.json file
0%
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
Updated by Stephan Großberndt about 9 years ago
Just had a similar problem: https://forge.typo3.org/issues/70149#change-278682
If extension manager is in non composer mode on TYPO3 6.2 it should just ignore composer.json at all.
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Nicole Cordes over 8 years ago
- Status changed from New to Resolved
Resolved with https://review.typo3.org/#/c/37971/