← Back to issue list

failed when promote snap using option: --yes

View original Github issue

Metadata

Project
snapcraft
Number
#4312
Type
issue
State
closed
Author
boukendesho
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed superseded

Reason: The report was closed in favor of #5945, which was resolved by PR #5984. Commit 1b669ec44 removed the edge-channel restriction for --yes 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 ### 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; the replacement was fixed by merged PR #5984 (commit 1b669ec44), enabling promote --yes from edge in Snapcraft 9.0.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of #5945; the replacement was fixed in Snapcraft 9.0 by PR #5984 (1b669ec44), allowing promote --yes from edge channels.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0. The --yes flag now permits promoting from latest/edge, resolving the initial validation error. This enables reliable automated promotions in CI/CD workflows without manual confirmation.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0. The --yes flag now correctly supports promoting from the edge channel, resolving the previous validation error and removing the need for TTY environment variable workarounds in CI pipelines.
qwen/qwen3.6-35b-a3b — — Fixed in Snapcraft 9.0. The --yes flag now correctly supports promoting from latest/edge, resolving the previous validation error and enabling automated workflows.
qwen3.6-35b-a3b-mtp-q6 — — Fixed in Snapcraft 9.0. The --yes flag now supports promotions from the edge channel, resolving the previous validation error and replacing the need for yes | piping workarounds in automated workflows.

Update history

No update history recorded yet.

Related work

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

    The replacement issue tracked the same failure to promote from edge with --yes.

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

    Merged as commit 1b669ec44 and released in Snapcraft 9.0.

Related issues

Issue Project State Summary Similarity
#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.
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.
81%
#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).
75%
#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%