validate command doesn't allow specifying a channel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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 - -
$ 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.
Somehow related to bug LP: #1902913