composer-changelogs icon indicating copy to clipboard operation
composer-changelogs copied to clipboard

Usage with --dry-run

Open alessandro-podo opened this issue 4 years ago • 2 comments

is it possible to get the same output, when i use dry-run, that i can check it before i update?

alessandro-podo avatar May 17 '21 19:05 alessandro-podo

Hello @alessandro-podo. Thanks for opening this issue. I did not know the existence of the flag --dry-run on composer update command until now so I will need to give it a try soon and see how it behaves with the plugin. :+1:

In the mean time, if you or someone else want to make it work with this flag, PRs are welcome :wink:

pyrech avatar May 18 '21 08:05 pyrech

Thanks for your fast answer.

I try to read and understand how this could be done.

alessandro-podo avatar May 18 '21 19:05 alessandro-podo

Finally took some time to look at this issue. The sad news is that Composer seems to disable plugins & scripts when using the --dry-run flag :confused: https://github.com/composer/composer/blob/main/src/Composer/Installer.php#L254-L256

I don't know if this is something that could change on Composer side but for now, I don't think we can do anything to make use of this flag :confused:

Do not hesitate to reopen this issue if something change in the future.

pyrech avatar Feb 04 '23 16:02 pyrech