Adobe Commerce云部署因阻止的编辑器版本而失败
当之前固定的编辑器版本被更新的安全建议阻止时,Cloud上的Adobe Commerce部署会在编辑器构建阶段失败。 即使未更改应用程序,构建也会在标准部署过程完成之前停止。 更新配置中的固定编辑器版本会恢复成功的内部版本。
要解决此问题,请更新固定编辑器版本并重新部署。
描述 description
环境
- Adobe Commerce on Cloud
- 使用固定编辑器版本的云部署构建
问题/症状
- 在编辑器构建或安装阶段部署失败
- 以前成功部署失败时不会更改应用程序代码
- 在标准Adobe Commerce部署步骤完成之前,发生生成失败
- 生成日志报告阻止了受安全建议影响的编辑器版本
示例错误:
Your requirements could not be resolved to an installable set of packages.
Root composer.json requires composer/composer 2.2.27 (exact version match: 2.2.27 or 2.2.27.0), found composer/composer[ 2.2.27] but these were not loaded, because they are affected by security advisories.
Go to https://packagist.org/security-advisories/ to find advisory details.
To ignore the advisories, add them to the audit "ignore" config.
To turn the feature off entirely, you can set "block-insecure" to false in your "audit" config.
解决方法 resolution
-
查看部署日志,并识别内部版本输出中报告的被阻止的编辑器版本。
-
在项目存储库中打开
.magento.app.yaml文件。 -
在
dependencies > php部分下找到编辑器依赖项。 示例:code language-none dependencies: php: composer/composer: '2.2.27' -
使用与Adobe Commerce版本兼容的受支持安全版本替换阻止的编辑器版本。 示例配置:
适用于Adobe Commerce 2.4.7或更高版本的:code language-none dependencies: php: composer/composer: '2.9.8'适用于Adobe Commerce 2.4.5-2.4.6的:
code language-none dependencies: php: composer/composer: '2.2.28' -
将配置更改提交到存储库。
-
重新部署环境。
-
验证是否成功完成Composer安装阶段,且没有出现安全咨询错误。
recommendation-more-help
experience-cloud-kcs-help-kbarticles