Juju snap doesn't have git binary - "git" version string generation failed : exec: "git": executable file not found in $PATH
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
$ juju version
3.1.6-genericli
I tried to test a patch for a charm by using a local charm on the filesystem, then Juju failed to generate version string for the local charm as follows.
$ juju refresh openstack-dashboard --path .
WARNING trying to generate version string: "git" version string generation failed : exec: "git": executable file not found in $PATH
This means that the charm version won't show in juju status. Charm path "/home/
Added local charm "openstack-
no change to endpoints in space "alpha": application-
Even though there is a git binary on the host filesystem, Juju snap itself doesn't have it.
$ snap run --shell juju -- git --help
/bin/bash: git: No such file or directory