Composer 버전 차단으로 인해 Adobe Commerce Cloud 배포에 실패함
이전에 고정된 작성기 버전이 업데이트된 보안 권고 사항에 의해 차단되면 작성기 빌드 단계에서 Adobe Commerce on Cloud 배포가 실패합니다. 응용 프로그램을 변경하지 않아도 표준 배포 프로세스가 완료되기 전에 빌드가 중지됩니다. 구성에서 고정된 작성기 버전을 업데이트하면 성공한 빌드가 복원됩니다.
이 문제를 해결하려면 고정된 작성기 버전을 업데이트하고 다시 배포합니다.
설명 description
환경
- 클라우드의 Adobe Commerce
- 고정된 작성기 버전을 사용하는 클라우드 배포 빌드
문제/증상
- 작성기 빌드 또는 설치 단계에서 배포가 실패합니다
- 이전에 성공한 배포는 애플리케이션 코드를 변경하지 않고 실패합니다
- 표준 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