welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

Forbid mu-plugins only works with underscored key: mu_plugins #619

Closed seanclen closed 3 years ago

seanclen commented 3 years ago

Describe the bug According to the example configuration in the movefile.yml-configurations-explained article, the key to forbid pushing/pulling must-use plugins is mu-plugins:

production:
  forbid:
    push:
      db: false
      plugins: false
      themes: false
      languages: false
      uploads: false
      mu-plugins: true
    pull:
      db: false
      plugins: false
      themes: false
      languages: false
      uploads: false
      mu-plugins: true

However, in my environment, this only works when I use an underscore in the key (mu_plugins:). While I can get the operation to behave properly, Doctor will return some errors in the config, see below for details.

production:
  forbid:
    push:
      db: false
      plugins: false
      themes: false
      languages: false
      uploads: false
      mu_plugins: true
    pull:
      db: false
      plugins: false
      themes: false
      languages: false
      uploads: false
      mu_plugins: true

Wordmove command Command used on the CLI: wordmove pull -e production -m or wordmove pull -e production --all

Environment (please complete the following information):

Doctor

alessandro-fazzi commented 3 years ago

Hello @seanclen ,

5.2.2 is out with the fix and the documentation was updated accordingly.

Thank you so much!