1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- --TEST--
- See Github issue #4795 ( github.com/composer/composer/issues/4795 ).
- Composer\Installer::whitelistUpdateDependencies intentionally ignores root requirements even if said package is also a
- dependency of one the requirements that is whitelisted for update.
- --COMPOSER--
- {
- "repositories": [
- {
- "type": "package",
- "package": [
- { "name": "a/a", "version": "1.0.0" },
- { "name": "a/a", "version": "1.1.0" },
- { "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } },
- { "name": "b/b", "version": "1.1.0", "require": { "a/b": "~1.1" } }
- ]
- }
- ],
- "require": {
- "a/a": "~1.0",
- "b/b": "~1.0"
- }
- }
- --INSTALLED--
- [
- { "name": "a/a", "version": "1.0.0" },
- { "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } }
- ]
- --RUN--
- update b/b --with-dependencies
- --EXPECT-OUTPUT--
- <warning>Dependency "a/a" is also a root requirement, but is not explicitly whitelisted. Ignoring.</warning>
- Loading composer repositories with package information
- Updating dependencies (including require-dev)
- Nothing to install or update
- Writing lock file
- Generating autoload files
- --EXPECT--
|