2017-04-03 2 views
0

하나의 패키지와 그 의존성 만 업데이트하려고합니다. 내가 --dry-run없이 같은 명령을 실행할 때작곡가 업데이트 패키지/이름 - 의존 관계가 허용 목록에 존재하지 않습니다.

> composer update drupal/core --with-dependencies --dry-run 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Package operations: 0 installs, 17 updates, 0 removals 
    - Updating guzzlehttp/psr7 (1.3.1) to guzzlehttp/psr7 (1.4.2) 
    - Updating guzzlehttp/guzzle (6.2.2) to guzzlehttp/guzzle (6.2.3) 
    - Updating symfony/class-loader (v2.8.17) to symfony/class-loader (v2.8.18) 
    - Updating symfony/debug (v2.8.17) to symfony/debug (v2.8.18) 
    - Updating symfony/console (v2.8.17) to symfony/console (v2.8.18) 
    - Updating symfony/dependency-injection (v2.8.17) to symfony/dependency-injection (v2.8.18) 
    - Updating symfony/http-foundation (v2.8.17) to symfony/http-foundation (v2.8.18) 
    - Updating symfony/event-dispatcher (v2.8.17) to symfony/event-dispatcher (v2.8.18) 
    - Updating symfony/http-kernel (v2.8.17) to symfony/http-kernel (v2.8.18) 
    - Updating symfony/process (v2.8.17) to symfony/process (v2.8.18) 
    - Updating symfony/routing (v2.8.17) to symfony/routing (v2.8.18) 
    - Updating symfony/serializer (v2.8.17) to symfony/serializer (v2.8.18) 
    - Updating symfony/translation (v2.8.17) to symfony/translation (v2.8.18) 
    - Updating symfony/validator (v2.8.17) to symfony/validator (v2.8.18) 
    - Updating symfony/yaml (v2.8.17) to symfony/yaml (v2.8.18) 
    - Updating twig/twig (v1.31.0) to twig/twig (v1.33.0) 
    - Updating zendframework/zend-feed (2.7.0) to zendframework/zend-feed (2.8.0) 

그러나, 어떤 패키지가 업데이트되지 얻을 :

> composer update drupal/core --with-dependencies 
Gathering patches for root package. 
Dependency "asm89/stack-cors" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "composer/semver" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "doctrine/annotations" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "doctrine/common" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "easyrdf/easyrdf" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "egulias/email-validator" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "guzzlehttp/guzzle" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "masterminds/html5" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "paragonie/random_compat" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "stack/builder" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony-cmf/routing" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/class-loader" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/console" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/dependency-injection" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/event-dispatcher" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/http-foundation" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/http-kernel" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/polyfill-iconv" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/process" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/psr-http-message-bridge" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/routing" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/serializer" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/translation" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/validator" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "symfony/yaml" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "twig/twig" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "zendframework/zend-diactoros" is also a root requirement, but is not explicitly whitelisted. Ignoring. 
Dependency "zendframework/zend-feed" is also a root requirement, but is not explicitly whitelisted. Ignoring. 

나는 드라이 실행하려고하면, 제대로 업데이트가 필요한 모든 패키지를 나열하는 것 --with-dependencies-의 모든 종속성을 화이트리스트로 바꾸어서 업데이트하지 않아야합니까?

답변

1

이 원인은 Drupal (drupal/drupal)이 구체적으로 core/composer.json을 프로젝트 (루트) composer.json에 병합하기 때문입니다.

"extra": { 
    "merge-plugin": { 
    "include": [ 
     "core/composer.json" 
    ], 
    "recurse": false, 
    "replace": false, 
    "merge-extra": false 
}, 

이것은 drupal/core 의존성이 결과, 루트 종속성으로 처리됩니다 "X도 루트 요구하지만, 명시 적으로 무시. 허용 목록에 포함되지 않습니다." 오류.

해결 방법으로 composer update을 통해 전체 프로젝트를 업데이트하거나 composer.json 파일의 병합 섹션을 사용하지 않도록 설정하십시오.