snapcraft help <plugin-name> doesn't work with plugin names containing a '-'

Bug #1654397 reported by Jamie Bennett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Andy Li

Bug Description

It seems that snapcraft help <plugin-name> doesn't work with a plugin that has a '-' in the name. Both plainbox-provider and tar-content both give the error message:

  $ snapcraft help plainbox-provider
The plugin does not exist. Run `snapcraft list-plugins` to see the available plugins.

All others work.

The plugins are available:

  $ snapcraft list-plugins
ant cmake go gulp kernel nil python qmake tar-content
autotools copy godeps jdk make nodejs python2 rust waf
catkin dump gradle kbuild maven plainbox-provider python3 scons

Revision history for this message
Leo Arias (elopio) wrote :

The help command expects the plugin name with _ instead of -.

$ snapcraft help plainbox_provider

It should replace the - it gets from the command line to a _.

I'm setting priority to medium, because we only have two plugins with -.

affects: snapcraft (Ubuntu) → snapcraft
Changed in snapcraft:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: Triaged → Fix Committed
assignee: nobody → Andy Li (onthewings)
milestone: none → 2.30
Revision history for this message
Andy Li (onthewings) wrote :

My PR only changed existing test project names (replaced ":" with "_").
So I think a fix to this issue is still needed?

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.

Other bug subscribers

Remote bug watches

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