snapcraft list-keys with no snap keys returns an empty table
Metadata
Current evaluation
Fixed via PR #1784. The command now displays a helpful message instead of an empty table when no local keys are registered, resolving the reported UX issue.
Suggested action: —
No scores available.
Issue body
This is similar to https://bugs.launchpad.net/snapcraft/+bug/1720210
My account, according to the store has 5 keys. ( This is are the keys returned by store.get_account_information()['account_keys'] ). However, when I run snap keys, it returns no keys:
$ snap keys --json
[]
In this scenario, when I run snapcraft keys, I get an empty table:
$ snapcraft keys
Name SHA3-384 fingerprint
Instead of reporting an empty table, it should return a nice message saying that no keys are registered. Maybe explaining how to register one.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Fixed via PR #1784. The command now displays a helpful message instead of an empty table when no local keys are registered, resolving the reported UX issue. | |
| qwen/qwen3.8-27b |
Impact:
20
Quick Win:
17.0
Staleness:
90
Complexity:
15
Confidence:
85
Support Request:
10
|
close stale | snapcraft list-keys prints an empty table instead of a helpful message when no keys are registered. Issue is ~8.7 years old with zero activity, but the fix was merged in PR #1784, which replaced the empty table with a helpful message pointing to register-key --help. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
10
|
close stale | snapcraft keys command displays an empty table instead of a helpful message when no keys are registered. Unaddressed for ~8.5 years with no maintainer interaction. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
10
|
close stale | snapcraft keys displays an empty table instead of a helpful message when no snap keys are registered. Untriaged and inactive for over 8 years, likely superseded by modern CLI design. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
15
Confidence:
85
Support Request:
10
|
close stale | snapcraft keys displays an empty table instead of a helpful message when no keys are registered. The issue is over eight years old with no maintainer response or labels. | |
| qwen3.6-35b-moe-q4 |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
5
|
close stale | snapcraft keys displays an empty table instead of a helpful message when no signing keys are registered. Untriaged, inactive for over 8 years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1720210 snapcraft list-keys with no keys returns an empty table | snapcraft (launchpad) | closed | Abandoned. Closed without implementation, leaving snapcraft list-keys to display an empty table instead of a helpful message when no keys are registered. | |
| #1622037 snapcraft list-keys prints no message when there are no keys | snapcraft (launchpad) | open | snapcraft list-keys prints only an empty table header when no keys are registered; a friendly message (and possibly tips on adding keys) is requested. Unlabelled, zero comments, no activity for ~10 years; a similar Launchpad bug remains open. | |
| #1720207 snapcraft list-keys returns no keys, but the user has keys | snapcraft (launchpad) | open | Maintainer elopio reported snapcraft list-keys showing an empty table despite the user having a registered key, while create-key says a 'default' key exists. Zero comments, no activity for ~6.4 years; the list-keys command has since been removed and replaced by keys. | |
| #1784 cli: show helpful message for 'snapcraft list-keys' with no keys | snapcraft | merged | Merged fix replacing the empty table output of snapcraft list-keys with a helpful message directing users to register-key --help. Added a unit test mocking an empty key list. Approved and merged after reviewer guidance on test implementation. | |
| #1858994 snapcraft list-keys doesn't show the non-registered key when no key is registered | snapcraft (launchpad) | open | list-keys (snapcraft 3.8) fails to show a locally created key when no key is registered yet, printing 'No keys have been registered' instead. Unlabelled, zero comments, no activity for ~6.6 years; the command was later removed and replaced by snapcraft keys. | |
| #1996618 Snapcraft does not list keys reported from snapd via External Key Manager | snapcraft (launchpad) | open | snapcraft list-keys fails to show keys from External Key Manager when no keys are registered. Unlabelled, 0 comments, inactive for ~3.2 years. |