juju help plugins produces duplicate entries if multiple executables exist on the path

Bug #1389303 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned
juju-core
Won't Fix
Medium
Unassigned

Bug Description

$ PATH=1.21/usr/lib/juju-1.21-alpha2/bin/:$PATH juju help plugins
ERROR 'juju-run --description': exit status 2
ERROR 'juju-backup --description': exit status 255
ERROR 'juju-backup --description': exit status 255
Juju Plugins

Plugins are implemented as stand-alone executable files somewhere in the user's PATH.
The executable command must be of the format juju-<plugin name>.

backup error occurred running 'juju-backup --description'
backup error occurred running 'juju-backup --description'
bundle Tools for managing bundles
charm Tools for authoring and maintaining charms
deployer Tool for declarative management of complex deployments.
metadata tools for generating and validating image and tools metadata
metadata tools for generating and validating image and tools metadata
restore Restore a backup made with juju backup
restore Restore a backup made with juju backup
retry re-execute failed hooks
run error occurred running 'juju-run --description'
test Execute a charms functional tests

When searching the path, shells stop at the first binary that matches the name. I presume juju does the same. Therefore, any subsequent matches with the same name are irrelevant and should be omitted from the help output.

Aaron Bentley (abentley)
description: updated
Aaron Bentley (abentley)
summary: - juju help plugins produces duplicate entries if multiple binaries exist
- on the path
+ juju help plugins produces duplicate entries if multiple executables
+ exist on the path
Curtis Hovey (sinzui)
tags: added: ui
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.1.0
Changed in juju-core:
status: Triaged → Won't Fix
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.1-rc2 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.