fetch-snaps --channel parameter does not support track/channel syntax for "latest/*"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
New
|
Undecided
|
Unassigned |
Bug Description
Expectation:
While declaring --channel=
Behavior:
Declaring the latest track in a fetch-snaps run instead fetches a nearly empty archive, only containing the channel-map.json and the meta.json file. This can be confusing to end-users, as `snap info $name` prepends the latest track to the channel names.
Example:
Below we use jq as a test snap. Note that it doesn't grab any revisions in the test where the latest track is declared.
ubuntu@focal:~$ sudo snap-store-proxy fetch-snaps jq --channel=
Fetching channel map info for jq
Downloaded jq to /var/snap/
ubuntu@focal:~$ sudo snap-store-proxy fetch-snaps jq --channel=stable --arch=amd64
Fetching channel map info for jq
Fetching revision 6 for jq
Downloaded jq to /var/snap/
Its worth noting that this is only an issue with the latest track. `snap-store-proxy fetch-snaps powershell --arch=amd64 --channel= lts/stable` works as expected. The issue isn't with using track/channel as a whole, but rather solely with directly declaring the latest track.