← Back to issue list

Remove restriction for promoting edge releases with `--yes`

View original Github issue

Metadata

Project
snapcraft
Number
#5958
Type
issue
State
closed
Author
mr-cal
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Snapcraft 9 removed the restriction on promoting edge releases with --yes via merged PR #5984 (commit 1b669ec44).

Resolution: closed resolved

Reason: Merged PR canonical/snapcraft#5984 as commit 1b669ec44, allowing edge promotions with --yes. Maintainer mr-cal confirmed that the fix shipped in Snapcraft 9.0.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request For the `snapcraft promote` command, drop the restriction that doesn't allow using `--yes` for edge releases. Since this could break existing workflows that depend on this safety net, this should be part of Snapcraft 9. ### The problem it solves Users are artificially restricted from automatically promoting edge releases at the command line: ```bash > snapcraft promote <snap-name> --from-channel edge --to-channel beta --yes Error: 'edge' is not a valid set value for --from-channel when using --yes. ``` This is an unhelpful error and has forced users to create [workarounds](https://github.com/canonical/checkbox/pull/877/changes). Removing this restriction is preferable to adding more flags (e.g. `--allow-dangerous-promotion`), which adds more complexity and is redundant with `--yes`. Fixes: - https://github.com/canonical/snapcraft/issues/5945 - https://github.com/canonical/snapcraft/issues/4312 - https://github.com/canonical/snapcraft/issues/4439

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Snapcraft 9 removed the restriction on promoting edge releases with --yes via merged PR #5984 (commit 1b669ec44).
stealth/space-bunny-alpha — closed resolved Restriction blocking `--yes` for `snapcraft promote --from-channel edge` was removed in Snapcraft 9.0; SNAPCRAFT_HAS_TTY is no longer supported and users get a warning to use `--yes` instead.
stealth/space-bunny-alpha — closed resolved Edge-channel restriction for `snapcraft promote --yes` removed in Snapcraft 9.0 via merged PR #5984 (commit 1b669ec44); maintainer mr-cal closed the issue confirming the TTY workaround is no longer needed.
stealth/space-bunny-alpha — closed resolved Snapcraft 9.0 now allows promote --yes from edge channels, removing the TTY workaround. Merged in snapcraft#5984 via 1b669ec44.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0. The restriction preventing the --yes flag for edge channel promotions in snapcraft promote was removed, enabling direct automated promotions and eliminating the need for TTY environment variable workarounds.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0. The restriction blocking the --yes flag for promoting edge releases in snapcraft promote was removed, eliminating workarounds and resolving multiple related issues.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0 by removing the restriction blocking --yes for edge releases in snapcraft promote. Users can now directly promote edge channels without workarounds.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in Snapcraft 9.0 by removing the restriction that blocked the --yes flag when promoting from edge channels in the snapcraft promote command, eliminating the need for manual workarounds.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#5984 (confidence 100%)

    Merged PR implementing the requested removal and explicitly resolving #5958.

Related issues

Issue Project State Summary Similarity
#5945 snapcraft promote doesn't work when using the `--yes` flag. snapcraft closed Fixed by merged PR #5984 (commit 1b669ec44), which removed the edge-channel restriction so `snapcraft promote --from-channel edge --to-channel beta --yes` now works. Shipped in Snapcraft 9.0.
79%
#5984 feat!: allow promoting from edge channels with --yes snapcraft merged Merged #5984 as commit 1b669ec44, allowing promote --yes from edge channels in Snapcraft 9 and resolving #5958, #5945, #4439, and #4312.
78%
#4312 failed when promote snap using option: --yes snapcraft closed Closed as a duplicate of #5945; the replacement was fixed by merged PR #5984 (commit 1b669ec44), enabling promote --yes from edge in Snapcraft 9.0.
75%
#4439 failed when promote snap using option: --yes snapcraft closed Closed as a duplicate of #5945; merged PR #5984 (1b669ec44) fixed `promote --yes` for edge-to-beta promotion in Snapcraft 9.0.
74%
#3185 cli: allow promoting from edge without --yes snapcraft merged Merged PR #3185, allowing CLI promotions from the edge channel without requiring --yes; merged as commit 131c99fd9.
72%