← Back to issue list

snapcraft list-keys prints no message when there are no keys

View original Launchpad issue

Metadata

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

Current evaluation

Fixed in #1784 (commit 5c76509ff); snapcraft list-keys now prints a helpful message when no keys are present instead of an empty table.

Resolution: closed resolved

Reason: The issue was resolved by PR #1784 (commit 5c76509ff), which added a user-friendly message when no keys are registered, as noted in the closing comment.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When I run snapcraft list-keys without keys associated, I get: ⟫ snapcraft list-keys Name SHA3-384 fingerprint ⟫ It would be better to print a message saying that there are no keys. Maybe even some tips about how to add some.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b — closed resolved Fixed in #1784 (commit 5c76509ff); snapcraft list-keys now prints a helpful message when no keys are present instead of an empty table.
stealth/space-bunny-alpha
Impact: 18
Quick Win: 15
Complexity: 8
Confidence: 92
Actionability: 90
close resolved UX request: `snapcraft list-keys` printed an empty table with no message when no keys existed. Fixed in canonical/snapcraft#1784 (5c76509ff); the command is now also a removed alias for `keys`.
stealth/space-bunny-alpha
Impact: 20
Quick Win: 16
Complexity: 10
Confidence: 93
Actionability: 90
close resolved UX request: `snapcraft list-keys` printed only an empty table when no keys exist. Implemented in commit 5c76509ff (PR #1784); current `keys` command prints helpful register-key/create-key messages.
stealth/space-bunny-alpha
Impact: 12
Quick Win: 10
Complexity: 5
Confidence: 92
Actionability: 88
close resolved UX request (2016) for `snapcraft list-keys` to print a message when no keys exist. Resolved: the `keys` command now prints 'No keys have been created... See create-key --help' and 'No keys have been registered... See register-key --help'; `list-keys` was removed in Snapcraft 9.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 22
Complexity: 10
Confidence: 90
Actionability: 80
close resolved The list-keys command was renamed to keys, which now prints a helpful message when no keys exist. The issue is resolved by the rename.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 17
Staleness: 92
Complexity: 15
Confidence: 65
Support Request: 10
needs triage 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.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 10
Confidence: 85
Support Request: 5
close stale snapcraft list-keys outputs only headers when no keys exist, with a suggestion to print a no keys message and usage tips. The issue has been open for nearly a decade with zero maintainer interaction or comments.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 10
close stale Minor UX improvement requesting a message when no GPG keys exist. Unlabelled, zero comments, and inactive for nearly a decade with no maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 5
close stale snapcraft list-keys prints only a header when no keys exist, requesting an informational message and usage tips. The issue is over 9 years old, has zero comments, and shows no maintainer engagement.

Update history

Date Change
closed
created

Related work

  • Likely Fixed By: canonical/snapcraft#1784 (confidence 95%)

    PR #1784 (commit 5c76509ff) added the helpful message for empty key lists.

Related issues

Issue Project State Summary Similarity
#1784 cli: show helpful message for 'snapcraft list-keys' with no keys snapcraft merged Merged PR #1784 (commit 5c76509ff): snapcraft list-keys now directs users to register-key --help when no keys exist instead of printing an empty table.
86%
#1736864 snapcraft list-keys with no snap keys returns an empty table snapcraft (launchpad) closed Fixed via merged canonical/snapcraft#1784 (commit 5c76509ff): list-keys now shows registration guidance instead of an empty table when no keys exist.
85%
#1720210 snapcraft list-keys with no keys returns an empty table snapcraft (launchpad) closed Empty-key output was fixed by PR #4245 (commit 1c44a58fc): keys now reports that no keys are registered and points users to register-key help.
85%
#1858994 snapcraft list-keys doesn't show the non-registered key when no key is registered snapcraft (launchpad) open list-keys hid local unregistered keys when no key was registered (snapcraft 3.8). Fixed by 1c44a58fc; today's 'keys' command lists local keys and marks unregistered ones, and list-keys was removed in Snapcraft 9.
79%
#1720207 snapcraft list-keys returns no keys, but the user has keys snapcraft (launchpad) open Observed behavior is resolved: keys now displays registered remote-only key fingerprints separately from local keys; legacy list-keys was renamed and removed in Snapcraft 9.
79%
#1996618 Snapcraft does not list keys reported from snapd via External Key Manager snapcraft (launchpad) open Legacy `snapcraft list-keys` hid keys returned by snapd/External Key Manager when the account had no registered keys; superseded by the craft-app `keys` command and Snapcraft 9 removal of list-keys.
71%
#786 Add `snapcraft list-keys` snapcraft merged Merged #786 as 233adda3a, adding snapcraft list-keys to display keys registered to the user's Store account alongside local key data.
70%