【发布时间】:2021-03-18 16:21:29
【问题描述】:
现在在几个 Composer 命令上收到一堆这样的警告。
作曲家转储自动加载
TYPO3 Extension Package "bk2k/bootstrap-package", does not define extension key in composer.json.
Specifying the extension key will be mandatory in future versions of TYPO3 (see: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ExtensionArchitecture/ComposerJson/Index.html#extra)
TYPO3 Extension Package "typo3/cms-introduction", does not define extension key in composer.json.
Specifying the extension key will be mandatory in future versions of TYPO3 (see: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ExtensionArchitecture/ComposerJson/Index.html#extra)
显而易见的解决方法是在每个扩展的“额外”部分中定义扩展密钥,如 https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ExtensionArchitecture/ComposerJson/Index.html#extra 中所述
我可以(已经)为我自己的扩展做到这一点。
我还可以为其他扩展创建 PR(我已经开始这样做了)。
但对于其他第三方扩展,我不确定它们是否仍会接受支持 TYPO3 9 的最新版本的更改(有些具有支持 10 及更高版本的最新版本)。
警告开始变得烦人,因为它出现了多次。
更新:一些链接:
- TYPO3/CmsComposerInstallers 中的更改为缺少 extra.typo3/cms.extension-key 添加了弃用警告:https://github.com/TYPO3/CmsComposerInstallers/pull/95
- 修复了缺少 extra.typo3/cms.extension-key 的多个警告:https://github.com/TYPO3/CmsComposerInstallers/pull/117
【问题讨论】:
-
“多次”问题将在下一个版本的typo3/cms-composer-installers 中得到解决
-
@Jonas 是的,我也看到了。做得好。这已经很有帮助了。我也一直在浏览已关闭的 PR,这些 PR 已经回答了我的一些问题:github.com/TYPO3/CmsComposerInstallers/…
标签: typo3