Page MenuHomePhabricator

'mw dev mediawiki destroy' asks if you want to clone the repositories if absent
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Create mediawiki containers with executing mw dev mediawiki create without any cloned repositories and answering the following questions("Do you want to clone MediaWiki&Vector now?") by 'n' and 'n'.
  • Execute mw dev mediawiki destroy.

What happens?:

The cli asks if you want to clone the repositories.

What should have happened instead?:

Just destroying without any question.

Software version:

$ mw version
GitCommit: 1f910e3
GitBranch: master
GitState: dirty
GitSummary: 1f910e3
BuildDate: 2021-07-14T23:35:23Z
Version: v0.1.0
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Event Timeline

Addshore moved this task from Inbox to Backlog on the mwcli board.

You have indeed found an edge case, as now the containers are running, but you need to clone mediawiki in order to stop them via the mediawiki command!

Addshore moved this task from Priority Backlog to In Progress on the mwcli board.

@Lens0021 so this will happen with ALL "mediawiki" sub commands.
Perhaps destroy should be a special case, so that you can easily destroy the setup? without needing to answer the questions again?
But I don't think that having an environment without mediawiki checked out should be a supported situation.

Will be in v0.10.1 which is building now