New issue
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
updatedb --post-updates requires an option argument to run #3385
Comments
For reference, |
I can confirm this. Using Drush 9.1, with symfony/console v3.2.14. The spec thats gone wrong here is "If the option exists on the commandline, but has no value (e.g. --foo), then the value will be true" from https://github.com/consolidation/annotated-command/#option-default-values. To reproduce this, run the command (or /cc @greg-1-anderson |
The unit tests only had coverage for StringInput; I added tests for ArgvInput, and the tests are still passing. I'll investigate in the context of Drush and see if I can figure out what the cause is here. |
The problem is that |
On Drush 9.1.0,
drush updatedb --post-updates
displays pending post updates, but does not actually execute them.drush updatedb --post-updates=1
does execute them. I'm unclear on whether this is an upstream bug withconsolidation/annotated-command
or something withdrush
. If I drop in a debug statement at the top ofUpdateDbCommands::updatedb()
, I can see the following options values:The text was updated successfully, but these errors were encountered: