We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
composer require --dry-run
My composer.json: does not exist
composer.json
When I run composer require --dry-run psr/log (or any other packages), the command runs successfully, but it creates composer.json.
composer require --dry-run psr/log
$ ls -a . .. $ composer --version Composer version 2.6.5 2023-10-06 10:11:52 $ composer require --dry-run psr/log ./composer.json has been created Running composer update psr/log Loading composer repositories with package information Updating dependencies Lock file operations: 1 install, 0 updates, 0 removals - Locking psr/log (3.0.0) Installing dependencies from lock file (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Installing psr/log (3.0.0) No installed packages - skipping audit. Using version ^3.0 for psr/log $ ls -a . .. composer.json $ cat composer.json { }
I expect dry-run not to create/modify any files.
The text was updated successfully, but these errors were encountered:
This line creates the file. It does not respect dry-run flag.
dry-run
Sorry, something went wrong.
3cfd9bf
Right, the file is needed at runtime even in dry run mode we cannot really do without it, but it will now be deleted after the run is complete.
Ensure composer.json gets deleted after a dry run require, fixes comp…
88d7564
…oser#11747
No branches or pull requests
My
composer.json
: does not existWhen I run
composer require --dry-run psr/log
(or any other packages), the command runs successfully, but it createscomposer.json
.I expect dry-run not to create/modify any files.
The text was updated successfully, but these errors were encountered: