snapcraft does not recognize -s flag, only --step, while help says otherwise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Sergio Schvezov |
Bug Description
Snacraft help shows '-s step' as valid, but accepts only '--step':
$ snapcraft clean --help
Usage: snapcraft help [OPTIONS] <part>...
Remove content - cleans downloads, builds or install artifacts.
Examples:
snapcraft clean
snapcraft clean my-part --step build
Options:
-s, --step [pull|build|
--help Show this message and exit.
$ snapcraft clean kernel -s build
Error: no such option: -s
$ snapcraft clean kernel --step build
Cleaning build step (and all subsequent steps) for kernel
Cleaning up priming area
Cleaning up staging area
Either the help text needs to be updated or '-s' put back. Note also that this snapcraft.yaml was not using the 'base' yaml key: https:/
summary: |
- snapcraft does recognize -s flag, only --step, while helps says + snapcraft does not recognize -s flag, only --step, while help says otherwise |
description: | updated |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
It is also really confusing when snapcraft suggests to use a command that is not working anymore:
$ snapcraft --target-arch=armhf /docs.snapcraft .io/t/base- snaps/11198
Setting target machine to 'armhf'
This snapcraft project does not specify the base keyword, explicitly setting the base keyword enables the latest snapcraft features.
This project is best built on 'Ubuntu 16.04', but is building on a 'Ubuntu 18.04' host.
Read more about bases at https:/
Cross compiling kernel target 'arm'
Failed to reuse files from previous run: The 'pull' step of 'kernel' is out of date:
The 'deb_arch' project option appears to have changed.
To continue, clean that part's 'pull' step by running `snapcraft clean kernel -s pull`.
$ snapcraft clean kernel -s pull
Error: no such option: -s