confusing message about `snapcraft --destructive-mode clean`
Bug #1856055 reported by
Ian Johnson
This bug report is a duplicate of:
Bug #1841892: snapcraft options are position-dependent.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
If I specify the --destructive-mode option before an argument such as clean, then snapcraft will default to assuming that the build environment is multipass for some reason:
```
$ snapcraft --destructive-mode clean
Usage: snapcraft clean [OPTIONS] <part>...
Error: --destructive-mode cannot be used with build provider 'multipass'
```
The correct way to do this is to use
```
$ snapcraft clean --destructive-mode
```
but still that's not obvious from the error message and IMHO it should just work to specify the --destructive-mode option first.
To post a comment you must log in.
This is still a problem with snapcraft 4.0 on candidate.