Open
Description
Docs page: https://juju.is/docs/juju/manage-plugins
Docs source: https://discourse.charmhub.io/t/how-to-manage-plugins/2203
Issue
When following the Create a Juju Plugin, I was not able to get the plugin named juju-ip (from the example) to be picked up by Juju so I can run juju ip ...
.
which juju
/snap/bin/juju
juju version
3.5.4-genericlinux-amd64
whoami
ubuntu
ls -l /usr/local/bin/juju-ip
-rwxr-xr-x 1 ubuntu ubuntu 242 Oct 2 17:02 /usr/local/bin/juju-ip
juju ip 0
ERROR juju: "ip" is not a juju command. See "juju --help".
juju-ip 0
null
Resolution
The reason this happens is due to strict snap confinement and running /snap/juju/current/bin/juju ip
works but feels weird.
Improvement
The docs should be updated to warn that this does not work with the Juju snap and if the argument is that it does, what is the recommended approach?