← Back to issue list

validate command doesn't allow specifying a channel

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1775658
Type
issue
State
closed
Author
~roadmr
Labels
—
Created
Updated
Closed

Current evaluation

Closed as addressed by snapcraft PR #3349 (commit 1fc64e4ac), which lets `validate` accept a snap ID and bypass the stable-channel name lookup.

Resolution: closed not a bug

Reason: Channel selection was not added. The maintainer directed users to use the snap ID, and PR #3349 (commit 1fc64e4ac) implemented that workaround for validate.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Currently, validations can only be issued to gate snaps which have a release on the stable channel _at the moment of creating the validation_. This is because `snapcraft validate` uses the details API to get the details from the stable channel only, and it doesn’t allow specifying another channel to get the gated snap’s details. However, once the validation is in place, validations are channel-agnostic because they operate at the revision level. $ snapcraft status gated-1 Track Arch Channel Version Revision Latest amd64 stable - - Candidate - - beta - - edge 2018-05-30-04 3 $ snapcraft validate gating-1 gated-1=3 Getting details for gated-1 Snap 'gated-1' was not found in the 'stable' channel. A way to validate a snap that's not published to stable (maybe by specifying another channel) would be useful. Specifying a revision would also be good but since the person issuing the validation may not necessarily be a developer or collaborator for the gated snap (core is a commonly-gated snap and very few people are collabs for core :) this is likely to not be useful most of the time.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Closed as addressed by snapcraft PR #3349 (commit 1fc64e4ac), which lets `validate` accept a snap ID and bypass the stable-channel name lookup.
stealth/space-bunny-alpha — closed not a bug Closed without adding channel selection after a maintainer noted that validators can target a snap by snap ID, bypassing the stable-channel lookup.
stealth/space-bunny-alpha — closed stale Channel selection for snapcraft validate was closed without an identified fix or documented resolution; the request was effectively abandoned.
qwen/qwen3.6-35b-a3b — — Feature request to allow channel specification in snapcraft validate was closed without resolution. With zero comments and no linked pull requests, the request appears abandoned.
qwen/qwen3.6-35b-a3b — — Feature request to specify channels in snapcraft validate was closed without resolution. No fixes or PRs were submitted, indicating the request was abandoned due to inactivity.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments, the request to specify channels in the snapcraft validate command was abandoned. The channel-agnostic validation limitation remains unaddressed.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The snapcraft validate channel specification limitation was abandoned or superseded by newer snapcraft releases. No fix or merge occurred.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#3349 (confidence 98%)

    Added snap-ID support to validate, avoiding resolution through the stable channel.

Related issues

Issue Project State Summary Similarity
#3349 cli: allow snap-id for validate snapcraft merged Merged PR #3349 (commit 1fc64e4ac, LP #1902913) lets `snapcraft validate` accept a snap-id as fallback when the Info API can't resolve a name, e.g. for private snaps; shipped on edge/pr-3349.
70%