← Back to issue list

failed when promote snap using option: --yes

View original Github issue

Metadata

Project
snapcraft
Number
#4439
Type
issue
State
closed
Author
krille-chan
Labels
—
Created
Updated
Closed

Current evaluation

Closed as a duplicate of #5945; merged PR #5984 (1b669ec44) fixed `promote --yes` for edge-to-beta promotion in Snapcraft 9.0.

Resolution: closed superseded

Reason: The maintainer closed the report as a duplicate of #5945, which had fuller context. PR #5984, commit 1b669ec44, removed the edge-channel restriction and shipped in Snapcraft 9.0.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description I want to promote a snap without confirmation, so i use --yes option from the edge channel. Without this I cannot promote my snap in github actions. This reopens https://github.com/snapcore/snapcraft/issues/4312 as this is not solved for me. ### To Reproduce snapcraft promote SNAP_NAME --from-channel latest/edge --to-channel latest/candidate --yes then i got Error: 'latest/edge' is not a valid set value for --from-channel when using --yes. ### Environment Ubuntu 23.04 snapcraft 7.5.2 ### snapcraft.yaml ```shell no ``` ### Relevant log output ```shell no log ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of #5945; merged PR #5984 (1b669ec44) fixed `promote --yes` for edge-to-beta promotion in Snapcraft 9.0.
stealth/space-bunny-alpha — closed resolved Closed as duplicate of #5945, which was fixed by merged PR #5984 (commit 1b669ec44) allowing promote --from-channel latest/edge with --yes; shipped in Snapcraft 9.0.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of #5945; PR #5984 (1b669ec44) later removed the edge-channel restriction for promote --yes in Snapcraft 9.0.
stealth/space-bunny-alpha — closed resolved Fixed in Snapcraft 9.0 by PR #5984 (commit 1b669ec44), allowing promotion from latest/edge with --yes. The report was closed as a duplicate of #5945.
qwen/qwen3.6-35b-a3b — — The snapcraft promote --yes command failed with a validation error. The issue was closed as a duplicate and fixed in Snapcraft 9.0, enabling proper non-interactive channel promotions with the --yes flag.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0. The --yes flag now correctly handles non-interactive promotions for unbranched edge channels, resolving the validation error and enabling reliable CI/CD automation without workarounds.
qwen/qwen3.6-35b-a3b — — Resolved in Snapcraft 9.0. The --yes flag now correctly supports non-interactive promotions from edge channels, eliminating the invalid channel error in CI workflows.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in Snapcraft 9.0. The --yes flag now supports non-interactive promotions for unbranched edge channels, resolving the validation error reported here and in duplicate issue #5945.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft#5945 (confidence 100%)

    The maintainer explicitly closed #4439 as a duplicate of this newer report.

  • Likely Fixed By: snapcraft#5984 (confidence 99%)

    Merged PR #5984 fixed the duplicate report via commit 1b669ec44; the fix shipped in Snapcraft 9.0.

Related issues

Issue Project State Summary Similarity
#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.
97%
#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.
83%
#5958 Remove restriction for promoting edge releases with `--yes` snapcraft closed Snapcraft 9 removed the restriction on promoting edge releases with --yes via merged PR #5984 (commit 1b669ec44).
74%
#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.
74%