Skip to content

Removing test-pack deletes config/bootstrap.php file #29805

@devngl

Description

@devngl

Symfony version(s) affected: 4.2.2

Description
On a clean installation removing test-pack deletes bootstrap file and leaves the system unusable.

How to reproduce
composer remove symfony/test-pack

symfony/test-pack could not be found in require but it is present in require-dev
Do you want to remove it from require-dev [yes]? yes
Dependency "symfony/process" 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.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Package operations: 0 installs, 0 updates, 7 removals
  - Removing symfony/test-pack (v1.0.5)
  - Removing symfony/phpunit-bridge (v4.2.1)
  - Removing symfony/panther (v0.2.0)
  - Removing symfony/dom-crawler (v4.2.1)
  - Removing symfony/css-selector (v4.2.1)
  - Removing symfony/browser-kit (v4.2.1)
  - Removing facebook/webdriver (1.6.0)
Writing lock file
Generating autoload files
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
Symfony operations: 1 recipe (0d0fee1b6ecd75e91c7ee15f9f008add)
  - Unconfiguring symfony/phpunit-bridge (>=4.1): From github.com/symfony/recipes:master
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!
!!  Warning: require(test/config/bootstrap.php): failed to open stream: No such file or directory in test/bin/console on line 26
!!
!!  Fatal error: require(): Failed opening required 'test/config/bootstrap.php' (include_path='.:') in test/bin/console on line 26
!!
Script @auto-scripts was called via post-update-cmd```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions