← Back to issue list

Default snapcraft.yaml file incorrectly suggests I run 'snapcraft plugins'

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1644678
Type
issue
State
closed
Author
~thomir-deactivatedaccount
Labels
—
Created
Updated
Closed

Current evaluation

Report that `snapcraft init` generated "See 'snapcraft plugins'" but no such command exists. Fixed by PR #959 (commit df525d781), which made `plugins` an alias of `list-plugins`, so the hint works as written.

Resolution: closed resolved

Reason: Resolved by snapcore/snapcraft PR #959 ("cli: make plugins be an alias of list-plugins", commit df525d781), referenced by aacid in the closing comment. Rather than editing the init template, maintainer sergiusens opted to add the `plugins` alias so the generated snapcraft.yaml comment was correct.

Evaluated by: mr-cal-bot

No scores available.

Issue body

In snapcraft 2.21, I generate a new snapcraft.yaml file with 'snapcraft init'. That generates a file, the tail end of which looks like this: ``` parts: app: # See 'snapcraft plugins' plugin: nil ``` I'm not sure what "See 'snapcraft plugins'" is suggesting, but my first thought is that 'snapcraft plugins' is a command I can run to see a list of plugins. However: ``` $ snapcraft plugins Usage: snapcraft [options] [--enable-geoip --no-parallel-build] snapcraft [options] init snapcraft [options] pull [<part> ...] [--enable-geoip] snapcraft [options] build [<part> ...] [--no-parallel-build] snapcraft [options] stage [<part> ...] snapcraft [options] prime [<part> ...] snapcraft [options] strip [<part> ...] snapcraft [options] clean [<part> ...] [--step <step>] snapcraft [options] snap [<directory> --output <snap-file>] snapcraft [options] cleanbuild snapcraft [options] login snapcraft [options] logout snapcraft [options] list-keys snapcraft [options] keys snapcraft [options] create-key [<key-name>] snapcraft [options] register-key [<key-name>] snapcraft [options] register <snap-name> [--private] snapcraft [options] sign-build <snap-file> [--key-name=<key-name>] [--local] snapcraft [options] upload <snap-file> snapcraft [options] push <snap-file> [--release <channels>] snapcraft [options] release <snap-name> <revision> <channel> snapcraft [options] status <snap-name> [--series=<series>] [--arch=<arch>] snapcraft [options] history <snap-name> [--series=<series>] [--arch=<arch>] snapcraft [options] close <snap-name> <channel_names>... snapcraft [options] list-plugins snapcraft [options] tour [<directory>] snapcraft [options] update snapcraft [options] gated <snap-name> snapcraft [options] validate <snap-name> <validation>... [--key-name=<key-name>] snapcraft [options] define <part-name> snapcraft [options] search [<query> ...] snapcraft [options] help (topics | <plugin> | <topic>) [--devel] snapcraft (-h | --help) snapcraft --version ``` So I guess this just needs to be updated to 'snapcraft list-plugins' ? Cheers,

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Report that `snapcraft init` generated "See 'snapcraft plugins'" but no such command exists. Fixed by PR #959 (commit df525d781), which made `plugins` an alias of `list-plugins`, so the hint works as written.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #959 (commit df525d781), which made plugins an alias for list-plugins, so the generated snapcraft.yaml guidance became valid.
stealth/space-bunny-alpha — closed resolved Resolved by PR #959 (df525d781): plugins became an alias of list-plugins, so the generated snapcraft plugins suggestion became runnable.
qwen/qwen3.6-35b-a3b — — Closed. The default snapcraft.yaml comment was updated to reference the valid snapcraft list-plugins command, resolving the incorrect command suggestion.
qwen/qwen3.6-35b-a3b — — Resolved by updating the default snapcraft.yaml template comment to reference the correct 'snapcraft list-plugins' command.
qwen/qwen3.6-35b-a3b — — Resolved by updating the generated snapcraft.yaml template comment from 'snapcraft plugins' to the correct 'snapcraft list-plugins' command.
qwen3.6-35b-a3b-mtp-q6 — — Fixed by updating the default snapcraft.yaml template to replace the incorrect snapcraft plugins comment with the valid snapcraft list-plugins command.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#959 (confidence 97%)

    Cited in the closing comment; commit df525d781 makes `plugins` an alias for `list-plugins`.

  • Duplicate Of: snapcore/snapcraft#951 (confidence 78%)

    Earlier PR proposing to rename list-plugins to plugins; closed unmerged in favor of the alias approach taken in #959.

  • Related To: snapcraft (launchpad)#1617565 (confidence 72%)

    Follow-up LP bug noting that `snapcraft plugins` now works but still prints names only, without descriptions.

Related issues

Issue Project State Summary Similarity
#1617565 'snapcraft plugins' should replace list-plugins and show a proper list snapcraft (launchpad) open The list-plugins-to-plugins rename shipped, but snapcraft plugins still prints names only; aligned descriptions and the discussed maintainer-field option remain open.
72%
#2002405 "snapcraft plugins" (latest/stable) chokes on parsing "extensions" line snapcraft (launchpad) closed Fixed in #4035 by correcting how snapcraft.yaml is parsed before listing plugins, resolving validation errors caused by extensions.
70%