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

Bug #1644678 reported by Thomi Richards
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Albert Astals Cid

Bug Description

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,

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

We actually want to support the `plugins` alias.

Thanks!

Changed in snapcraft:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Albert Astals Cid (aacid) wrote :
Changed in snapcraft:
milestone: none → 2.24
assignee: nobody → Albert Astals Cid (aacid)
status: Triaged → Fix Committed
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.