You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
failed when promote snap using option: --yes #4439
❯ snapcraft promote --yes --from-channel 'latest/edge' --to-channel 'latest/beta' kissiel-hello2
snapcraft promote does not have a stable CLI interface. Use with caution in scripts.
Usage: snapcraft promote [OPTIONS] <snap-name>
Try 'snapcraft promote -h' for help.
Error: 'latest/edge' is not a valid set value for --from-channel when using --yes.
~ via 🐍 v3.11.6
❯ snapcraft status kissiel-hello2
Track Arch Channel Version Revision Progress
latest amd64 stable - - -
candidate - - -
beta - - -
edge 0.1.2 1 -
Activity
sergiusens commentedon Nov 30, 2023
Interesting, can you provide the output of
statusfor this snap?kissiel commentedon Dec 6, 2023
Same problem, here's mine:
Hook25 commentedon Dec 6, 2023
We have this workaround, not perfect at all but it works for now:
https://github.com/canonical/checkbox/pull/877/files
This is possibly related to this line in snapcraft: https://github.com/snapcore/snapcraft/blob/662af4c00fb43b97b87eef16f4edbba4ff12a1cf/snapcraft_legacy/cli/store.py#L164
Makes me think it is intentional, probably we want a different error message, something like
add work around for interactive mode
Add workflow_call to pr.yaml (#74)
bepri commentedon Jan 8, 2026
Thanks for the report, @krille-chan :)
This issue is rather old now, but has been reported again at #5945. Since that issue has more context, I'm closing this as a duplicate.
--yesflag. #5945mr-cal commentedon Jun 15, 2026
This has been fixed in Snapcraft 9.0.
Anyone using workarounds in a Github workflow like this:
can use the
--yesflag instead: